added logic for generating ssh keys