[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: ssh-keygen



On Tue, Aug 19, 2008 at 16:23:20 +0800, Rod James Bio (rjubio@gmail.com) wrote: 

> ---------- Forwarded message ----------
> From: Rod James Bio <rjubio@gmail.com>
> Date: Tue, Aug 19, 2008 at 4:20 PM
> Subject: ssh-keygen
> To: debian-user@lists.debian.org, "Philippine Linux Users' Group (PLUG)
> Technical Discussion List" <plug@lists.linux.org.ph>
> 
> 
> I am testing login without a password for my computer laboratory here in our
> campus since I need it to automate the backup process. I was able to
> implement login without password with other computers by
>   #ssh-keygen -t rsa (I left the passphrase field blank)
>   then copying the generated key to the authorized_keys of the computer
> where I will login without password.
> 
> After doing these steps I had problem since the remote computer is asking
> for a password. Does anybody have an idea on what is happening. I think the
> problem is with the ssh-keygen command.

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 me@otherhost 'cat >> .ssh/authorized_keys2'
<enter password>

Then:
ssh me@otherhost (should work without password)

-- 
Bob Cox.  Stoke Gifford, near Bristol, UK.
Registered user #445000 with the Linux Counter - http://counter.li.org/


Reply to: