[NBLUG/talk] OpenSSH2 with public key (no password)

Bob Blick bobblick at covad.net
Fri Jul 11 12:54:00 PDT 2003


Mark Street said:

> I like the SSH with KEYS HOWTO ... probably found at linuxdoc.org or
> google'd.

Yep, read it.
>
> THESE ARE SSH1 techniques, for SSH2 you need to copy id_dsa.pub over to
> the  REMOTEHOST and append it to ~/.ssh/authorized_keys2
>
> ssh-keygen - generate a keypair with NO passwd
>
> yep, scp ~/.ssh/identity.pub REMOTEHOST:./identity.pub
>
> then ssh to the remote host and run.
>
> cat identity.pub >> ~/.ssh/authorized_keys
>
> If you did not type in a password when you generated the identity you
> should  now be able to login from your client to the REMOTEHOST without
> a prompt or  passwd.
>
> ssh joe at REMOTEHOST
>
> BOOM

Nope, does not work. I've tried this and all the ssh1, ssh2, and openssh
variations on this theme. (authorized_key2, etc)

Running ssh with the verbose option is not much help, since I don't get
the other side's messages. It does say that allowed methods are pubkey and
password, so I know the server does allow it.

Thanks,

Bob





More information about the talk mailing list