[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
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
howtos:security:sshkeys [2013/03/19 02:37 (UTC)] – old revision restored (2012/09/22 20:27) nocturnal.slacker | howtos:security:sshkeys [2015/04/20 18:59 (UTC)] (current) – Changed "WARNING:" to "A word of caution here:" at the suggestion of D. Spaier ~VTEL nocturnal.slacker |
---|
In the example above, I copy the //__public__// key ''TEST.rsa.pub'' on the remote machine named ''test.example.com'', as user ''nr''. The file is renamed ''authorized_keys'' which is the name of the file that contains all the public keys authorized to connect to the server. | In the example above, I copy the //__public__// key ''TEST.rsa.pub'' on the remote machine named ''test.example.com'', as user ''nr''. The file is renamed ''authorized_keys'' which is the name of the file that contains all the public keys authorized to connect to the server. |
| |
<note warning>WARNING: do not execute the ''scp'' command above if you already have an ''authorized_keys'' file on the remote computer! This will replace the content of the file with your public key!! | <note warning>A word of caution here: do not execute the ''scp'' command above if you already have an ''authorized_keys'' file on the remote computer! This will replace the content of the file with your public key!! |
If you already have an ''authorized_keys'' file, execute a ''cat TEST.rsa.pub >> authorized_keys'' on the remote machine to add your public key at the end of authorized keys.</note> | If you already have an ''authorized_keys'' file, execute a ''cat TEST.rsa.pub >> authorized_keys'' on the remote machine to add your public key at the end of authorized keys.</note> |
| |
</code> | </code> |
| |
Please note the ''PubkeyAuthentication yes'' line: this is the default value for public key authentication, and, as you can see, it is set to ''yes''. You are good to go and use your key! On the other hand, if you see something like this: | Please note the ''#PubkeyAuthentication yes'' line: this is the default value for public key authentication, and, as you can see, it is set to ''yes''. You are good to go and use your key! On the other hand, if you see something like this: |
| |
<code> | <code> |