Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SSH Public Key Authentication

From MTU LUG Wiki
Revision as of 21:41, 28 May 2005 by Aragirn (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In a terminal on the local machine, type:

ssh-keygen -t dsa
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/id_dsa.pub.new

ssh (or otherwise gain access) to the remote host and do the following:

cd ~/.ssh

Cat the public key from the client into the authorized_keys file

cat id_dsa.pub.new >> authorized_keys

That's it.