SSH-Keys: Difference between revisions

Jump to navigation Jump to search
No change in size ,  13 February 2008
m (category)
Line 21: Line 21:


You will still be prompted for a password at this stage. Once you are on other machine, you need to move into the .ssh directory cd .ssh. You will have to add the line in the id_dsa.pub into the authorized_keys file. The easiest way to do this is to simple cat the i d_dsa.pub and put the results into the authorized_keys file i.e:
You will still be prompted for a password at this stage. Once you are on other machine, you need to move into the .ssh directory cd .ssh. You will have to add the line in the id_dsa.pub into the authorized_keys file. The easiest way to do this is to simple cat the i d_dsa.pub and put the results into the authorized_keys file i.e:
cat id_dsa.pub >> authorized_keys
cat id_dsa.pub >> authorized_keys


Once all that is done, then all that remains to do is to remove the id_dsa.pub on the machine you wish to ssh to rm ~/.ssh/id_dsa.pub. Note that this will only work when ssh'ing from the machine you set up the keys on to the machine you sent your public key to. The next time you log in you will be asked for your passphrase or logged straight on if you did not choose to have a passphrase.
Once all that is done, then all that remains to do is to remove the id_dsa.pub on the machine you wish to ssh to rm ~/.ssh/id_dsa.pub. Note that this will only work when ssh'ing from the machine you set up the keys on to the machine you sent your public key to. The next time you log in you will be asked for your passphrase or logged straight on if you did not choose to have a passphrase.
If you have any problems at any stage, helpdesk will be more than happy in helping you out. Have fun :-)
If you have any problems at any stage, helpdesk will be more than happy in helping you out. Have fun :-)


==Windows SSH-Keys with Putty==
==Windows SSH-Keys with Putty==
138

edits

Navigation menu