ssh-copy-id (password less ssh login)

If your OS does not support “ssh-copy-id” command, you can use the following instead.

Notes about the command above:

  • The command above should be written all on one line (no line breaks!)
  • This post relates to *NIX & MAC systems
  • is the ssh public key that you have created on your local machine from where you want to login to another remote/local server
  • (ssh keys) can be generated by using the command ssh-keygen
  • If the remote machine is running sshd on a port other than 22, then use the port in [-p SSH_PORT] other wise it is optional
  • Use [-l USERNAME] replacing USERNAME with the remote user login if the local Username and remote login names are different, otherwise this is optional.