David Watson wrote:
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.



Your example works _if_ you are using rsa keys.  If using a dsa key
use ssh-copy-id -i ~/.ssh/id.dsa.pub [EMAIL PROTECTED]

Regards

Wayne


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

Reply via email to