refactoring ssh key generation to a separate module