SSH Public Key Authentication: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Revision as of 16:35, 14 May 2005
In a terminal, type:
ssh-keygen -tdsa cd ~/.ssh
You'll then need to copy it to the remote host, you can do this via scp (command below) or via some other secure method.
scp id_dsa.pub user@remote_host:.ssh
ssh (or otherwise gain access) to the remote host and do the following:
cd ~/.ssh
If the file authorized_keys is in the .ssh directory
cat id_dsa.pub >> authorized_keys
If the file authorized_keys is not in the .ssh directory
mv id_dsa.pub authorized_keys