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
  • id_rsa.pub is the ssh public key that you have created on your local machine from where you want to login to another remote/local server
  • id_rsa.pub (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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu