sshkeys
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sshkeys [2022/07/19 19:52] – created 85.134.209.200 | sshkeys [2022/07/23 10:07] (current) – 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 | + | < |
- | ssh-keygen -t rsa | + | ssh-keygen |
+ | </ | ||
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 | ||
+ | < | ||
scp ~/ | scp ~/ | ||
+ | </ | ||
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 | ||
- | cat id_rsa.pub >> | + | < |
+ | cat id_rsa.pub >> | ||
+ | </ | ||
+ | |||
+ | Thats it. The pub key can be deleted off the server your logging into. Job Done. | ||
- | Thats it. The pub key can be deleted off the server. Job Done.< | ||
Original = http:// | Original = http:// |
sshkeys.1658260370.txt.gz · Last modified: 2022/07/19 20:13 (external edit)