SSH Public Key Authentication

From MTU LUG Wiki
Revision as of 16:35, 14 May 2005 by Aragirn (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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