This is an old revision of the document!
Two remarks:
- I think that “
noryungi@mypc$ scp TEST.rsa.pub nr@test.example.com:/home/nr/.ssh/authorized_keys
” is a potentially destructive command. What if the user already has a~/.ssh/authorized_keys
file? You need to elaborate. - Remove the “template” tag from the page. What did the comments at the bottom of the page source tell you?
— Eric Hameleers 2012/09/03 15:51
Eric: you are absolutely right - I'll correct both your points ASAP.
- N.
Corrected!
- N.
Can we add ssh-copy-id
as a command to copy the public key? It seems easier to use than scp
for me, and probably less potentially destructive.
Ellendhel (French translator for this page)
Ellendhel: very good idea. I'll add ssh-copy-id soon.
- N.
Noryungi, I just used your excellent tutorial here to set up my pub/private keys on my three Slackware systems on my home network! Works very well. Thanks! :) — V. T. Eric Layton 2013/03/16 21:11
By the way, for this to work, the comment # needs to be removed from this entry in sshd_config. I will edit for you now. :)
#PubkeyAuthentication yes
— V. T. Eric Layton 2013/03/18 19:31
Eric Layton, it should not be necessary to uncomment that line, because the commented-out values are the defaults in sshd_config. My own server still has that line commented-out and it works perfectly.
— Eric Hameleers 2013/03/19 02:03
That's odd, Eric. On my own Slack, I had to uncomment for this to work. *shrugging* I'll trust your judgment in this over my own and correct my edit. :) — V. T. Eric Layton 2013/03/19 11:02
The admonition: “WARNING: do not execute the scp command above if you already have an authorized_keys file on the remote computer! …” amazingly lead to an embedded admonition once converted to AsciiDoc ;) Isn't the capitalized word “WARNING” somehow redundant?.
Not important though, just a very small heads-up.
— Didier Spaier 2015/04/13 19:10