HTML and CSS Reference
Figure 9-19. Adding the public key
You now need to save the file. Press the Esc key on your keyboard and then
hold down Shift + :. Then type wq (write quit), and press the Enter key on your
keyboard. You should see something similar to what is shown in Figure 9-20.
Figure 9-20. Writing a file in vi
Finally, you will need to set the appropriate permissions for the new files. Move
back to the home directory by using the command cd ../ . The .ssh folder
requires owner read/write/execute permissions. To do this, run the command
chmod 0700 ./.ssh .
Next, the authorized_keys file requires owner read/write permissions. To do
this, run the command chmod 0600 ./ssh/authorized_keys , as shown in