- Create an RSA key-pair.
- Copy the public key to the remote server.
- 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