linux:ssh:public-key-authentication
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:ssh:public-key-authentication [2024/09/03 15:08] – odefta | linux:ssh:public-key-authentication [2024/09/03 15:10] (current) – odefta | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Public key authentication to remote ssh server ====== | ====== Public key authentication to remote ssh server ====== | ||
+ | |||
+ | Create a SSH key-pair and set a custom name for it to not override the existing one. \\ | ||
+ | Change id_rsa with a custom name (for example id_rsa_odcent8) | ||
<code bash> | <code bash> | ||
Line 18: | Line 21: | ||
Your public key has been saved in id_rsa_odcent8.pub | Your public key has been saved in id_rsa_odcent8.pub | ||
+ | Copy the public key to the remote machine. | ||
< | < | ||
ssh-copy-id -i ~/ | ssh-copy-id -i ~/ |
linux/ssh/public-key-authentication.1725365291.txt.gz · Last modified: 2024/09/03 15:08 by odefta