June 2016
Beginner
456 pages
9h 31m
English
In this recipe, you will see how to set up secure public key authentication.
You might need root privileges for certain tasks.
Follow these steps to set up public key authentication:
$sudo adduser john
john and change to the home directory with cd ~/:.ssh directory if it doesn't already exist:
$ mkdir .ssh
authorized_keys under the .ssh directory:
$ touch .ssh/authorized_keys
.ssh directory to 700:
$chmod 700 .ssh
authorized_keys to 600:
$ chmod 600 .ssh/authorized_keys
Read now
Unlock full access