User Tools

Site Tools


linux:ssh:public-key-authentication

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ssh:public-key-authentication [2024/09/03 15:08] odeftalinux: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.
 <code> <code>
 ssh-copy-id -i ~/.ssh/id_rsa_odcent8.pub root@remote_ssh_server ssh-copy-id -i ~/.ssh/id_rsa_odcent8.pub root@remote_ssh_server
linux/ssh/public-key-authentication.1725365291.txt.gz · Last modified: 2024/09/03 15:08 by odefta