In the case you’re using OSX and you would like to use the
ssh-copy-id command in order to import your SSH key to a server (which avoid the server to ask your user password), then you can install it really quickly thanks to Homebrew:
1 $ brew install ssh-copy-id
Then just do something like the following:
1 2 3 4 5 6 7 8 $ ssh-copy-id -i ~/.ssh/id_rsa.pub email@example.com ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'firstname.lastname@example.org'" and check to make sure that only the key(s) you wanted were added.