On Tue, 19 Aug 2008 09:29:26 +0100
Bob Cox <[EMAIL PROTECTED]> wrote:
> This is how I do it when setting up a new machine:
> 
> ssh-keygen -t dsa
> <enter, enter, enter>
> cat ~/.ssh/id_dsa.pub | ssh [EMAIL PROTECTED] 'cat
> >> .ssh/authorized_keys2' <enter password>
> 
> Then:
> ssh [EMAIL PROTECTED] (should work without password)
> 

To copy the key to the remote host you may can also use the following
command:

ssh-copy-id [EMAIL PROTECTED]

which takes care of copying to the right location and ensuring the
permissions are set correctly.


-- 
David Watson - Debian GNU/Linux Developer
[EMAIL PROTECTED], [EMAIL PROTECTED]

Jabber: [EMAIL PROTECTED]
Web: http://planetwatson.co.uk/blog


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to