I'm setting up OpenSSH on a server and I've created my keys on my client, but I don't know where I'm supposed to put the public key on the host. I understand it needs to be added to the authorized_keys file, but where is the authorized keys file? In sshd_config it has it at
%h/.ssh/authorized-keys
I look around a bit and I've seen people refer to %h as being a shortcut for the home directory, but is it home directory as in /home/.ssh or is it /home/user/.ssh?
Forgive my ignorance and thank you in advance!
The .ssh directory is at neither locations, I already looked.
sudo cat /media/usb/id_rsa.pub >> /home/user/.ssh/authorized_keys
however, that give me a permission denied error
-bash: /home/user/.ssh/authorized_keys: Permission denied
Whats with that? & how would I go about creating this authorized_keys file? Any particular file format or something?
– A. Franco Apr 05 '15 at 06:23