Saturday, March 9, 2013

Setting up SSH public/private keys

In client
$ cd ~/.ssh
$ ssh-keygen -t rsa -b 4096
$ ssh-add  #This will prevent entering rsa key password everytime
Copy the content of ~/.ssh/id_rsa.pub
In server
$ cd ~/.ssh
$ vi authorized_keys
Paste the content of what you copied from client:~/.ssh/id_rsa.pub

Save the authorized_keys file.

source

No comments:

Post a Comment