The quickest way to keying an SSH login

  • August 6, 2007
  • Avatar for jacob
    Jacob
    Peddicord

If you read Peter's tutorial a while back on how to create an SSH key, you probably found it a little annoying that you had to sign in and out of your server multiple times to copy your key over and test it on a remote machine. Stop wasting any more time needlessly typing in your password to upload the key and let ssh-copy-id do it for you.

You might have seen it in last week's cheat sheet, but I'd like to document it further. Basically, all you need to do is call ssh-copy-id to your server just like you would for ssh:

ssh-copy-id [email protected]

When you run that, you will have to type in your password for the remote server, but only once. ssh-copy-id will automatically copy your key over and change the permissions appropriately. No more needless chmod-ing or scp-ing.

Later on, I'll go into details of a graphical application that will also do this and more for you.

Avatar for jacob Jacob Peddicord

Home » Articles »