On the client:
1 2 |
user@client:~$ ssh-keygen -t rsa -b 4096 -C "user@client" user@client:~$ ssh-copy-id -i path/to/auth/file/user_rsa.pub user@server |
On the server:
1 |
user@server:~$ sudo nano /etc/ssh/sshd_config |
RSAAuthentication yes
PubkeyAuthentication yes
ChallengeResponseAuthentication no
PasswordAuthentication no
PermitRootLogin no
1 |
user@server:~$ sudo service ssh restart |