ssh: automatical login configuration
Peter Garrett
peter.garrett at optusnet.com.au
Sun Oct 8 19:16:28 UTC 2006
On Sun, 8 Oct 2006 14:21:06 +0200
Luqman <luqman_ngs at gmx.net> wrote:
> I have followed http://ubuntuguide.org/wiki/Dapper#SSH_Server for
> passphraseless login configuration. "ssh remoteuser at remotehost" asks for
> passphrase for local private key.
>
> That is what I did:
>
> 1) ssh-keygen -t rsa (on remote and local pcs)
> 2) scp .ssh/id_rsa.pub remoteuser at remotehost:~/.ssh/authorized_keys
> exchanged public keys between both pcs
I think the problem here is that you seem to have *copied* the id_rsa.pub
file to the remote authorized_keys file. This won't work. You actually need
to *append* the contents of the file to the remote authorized_keys file.
The easiest way to do this is by issuing
" ssh-copy-id -i id_rsa.pub remoteuser at remotehost "
See "man ssh-copy-id "
The other way is to scp the id file to the remote host, then do
cat id_rsa.pub >> ~/.ssh/authorized_keys on the remote host, but the
ssh-copy-id way is much easier and takes care of permissions at the same
time.
Peter
More information about the ubuntu-users
mailing list