Article 5JMF3 SSH Keys - Where to save public key

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?latest?d=yIl2AUoC8zA latest?i=HjSeGGUaCDA:xrPFAtOjkz4:F7zBnMy latest?i=HjSeGGUaCDA:xrPFAtOjkz4:V_sGLiP latest?d=qj6IDK7rITs latest?i=HjSeGGUaCDA:xrPFAtOjkz4:gIN9vFwHjSeGGUaCDA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments