Tuesday, August 7, 2012

A quick way to append your public keys to a remote server's Authorized Keys File

The basic steps are:

  1. Create an RSA key-pair.
  2. Copy the public key to the remote server.
  3. Add the public key to the authorized_keys file on the remote server. 

For generating the key use the command
ssh-keygen -t rsa
The following command does the steps 2 and 3.
ssh-copy-id user@host

No comments:

Post a Comment