SSH Keys - Where to save public key
by DD345 from LinuxQuestions.org on (#5JMF3)
I would like to use ssh keys to log in. I have used the key gen function provided by Openssh my issue is saving the public key to the remote machine.
https://docs.slackware.com/howtos:security:sshkeys I have been following the linked tutorial to do so.
When I attempt to follow this example line to copy the key:
noryungi@mypc$ scp TEST.rsa.pub nr@test.example.com:/home/nr/.ssh/authorized_keys
It says that the file/directory does not exist. I checked and it seems that the authorized_keys directory does not exist. Should this directory not already exist?
How can I create the directory and will that work?
https://docs.slackware.com/howtos:security:sshkeys I have been following the linked tutorial to do so.
When I attempt to follow this example line to copy the key:
noryungi@mypc$ scp TEST.rsa.pub nr@test.example.com:/home/nr/.ssh/authorized_keys
It says that the file/directory does not exist. I checked and it seems that the authorized_keys directory does not exist. Should this directory not already exist?
How can I create the directory and will that work?