Added common _create subroutine and create_ssh_key