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
sshkeys [2022/07/23 11:00] – Updated formatting adminsshkeys [2022/07/23 11:07] (current) admin
Line 4: Line 4:
 Create keys on local machine Create keys on local machine
 <code> <code>
- ssh-keygen -t rsa+ ssh-keygen
 </code> </code>
  
Line 14: Line 14:
 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> <code>
- cat id_rsa.pub >> authorized_keys+ cat id_rsa.pub >> .ssh/authorized_key
 </code> </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 your logging into. Job Done.
  
 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