Trouble setting up SSH Password Authentication
Step 4 says:
Create a directory for the public key in your home directory (/home/yourusername) by entering the following command on your Linode:
Firstly where should I be creating this folder if I am using "root" as the login? /home/ does not contain a "root" folder or any others. The root folder is just one level up from /home/. I have tried mkdir .ssh in various places but it doesn't seem to be doing anything. When I run ls I can't see the folder I just tried to create. Could someone give me some pointers on what I might be doing wrong here please?
When I run ls I can't see the folder I just tried to create.
ls --help | less
and look for an option which reads "do not ignore entries starting with ."
So the .ssh folder will be /root/.ssh
Files and folders beginning with a dot are hidden from usual directory listings. Use "ls -a" to view all files, including hidden ones.
[[email protected]:~] pwd /root [[email protected]:~] ls [[email protected]:~] mkdir .ssh mkdir: cannot create directory `.ssh': File exists [[email protected]:~] ls -a . .. .bash_history .bashrc .profile .ssh .viminfo [[email protected]:~] cd .ssh [[email protected]:~/.ssh] ls authorized_keys