User Tools

Site Tools


sshkeys

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
sshkeys [2022/07/19 21:13] – external edit 127.0.0.1sshkeys [2022/07/23 11:00] – Updated formatting admin
Line 3: Line 3:
 =====Creating SSH Keys for rsync or ssh etc.===== =====Creating SSH Keys for rsync or ssh etc.=====
 Create keys on local machine Create keys on local machine
- #ssh-keygen -t dsa   Will not work anymore after server upgrades+<code>
  ssh-keygen -t rsa  ssh-keygen -t rsa
 +</code>
  
 Copy Public Key (id_dsa.pub) to PC you want to log into Copy Public Key (id_dsa.pub) to PC you want to log into
 +<code>
  scp ~/.ssh/id_rsa.pub username@host:  scp ~/.ssh/id_rsa.pub username@host:
 +</code>
  
 On the PC you want to log into go to the .ssh folder in the home dir and add the key in to the authorised keys file On the PC you want to log into go to the .ssh folder in the home dir and add the key in to the authorised keys file
 +<code>
  cat id_rsa.pub >> authorized_keys  cat id_rsa.pub >> authorized_keys
 +</code>
 +
 +Thats it. The pub key can be deleted off the server. Job Done.
  
-Thats it. The pub key can be deleted off the server. Job Done.<br> 
 Original = http://www.redbrick.dcu.ie/help/tutorials/ssh_keys/ Original = http://www.redbrick.dcu.ie/help/tutorials/ssh_keys/
sshkeys.txt · Last modified: 2022/07/23 11:07 by admin