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

New ssh v2 and authentication



I'm a bit confused by the fact that OpenSSH now defaults to using
version 2. How do I use ssh-agent as I have in the past to do
password-less logins?

In the past I'd  do this once with my pass phrase:

% ssh-keygen
<blah,blah,blah>

and copy the contents ~/.ssh/identity.pub to the remote machine
~/.ssh/authorized_keys.

then when I log in to my machine, which runs my window manager via
ssh-agent, I'd do

% ssh-add
<blah,blah,blah>

and, viola, I could log in to the remote machine without entering my
password or passphrase.

How is the same thing accomplished in version 2? I know about
generating id_[d|r]sa using "ssh-keygen -t" and that there is now a
~/.ssh/authorized_keys2 file but what goes into it to allow
passwordless login via ssh-agent? I tried adding ~/.ssh/id_dsa.pub and
~/.ssh/id_rsa.pub to the remote machines ~/.ssh/authorized_keys2 but
that didn't do the trick.

Thanks,
Gary



Reply to: