[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

This is an old revision of the document!


Two remarks:

  1. 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.
  2. 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. :)

nr@test.example.com$ grep -i pubkeyauth /etc/ssh/sshd_config

#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 leads to nested admonitions 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


Better? — V. T. Eric Layton 2015/04/20 15:02


Yes, IMO at least, thanks Eric — Didier Spaier 2015/04/21 11:52

 talk:howtos:security:sshkeys ()