ssh: automatical login configuration

Luqman luqman_ngs at gmx.net
Mon Oct 9 15:38:58 UTC 2006


> Peter Garrett wanted us to know:

>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.

Well, I actually scp'ed files to the remote machine and then cat'ed that
file into authorized_heys. 

The problem was that passphrayse wasn't activated. With ssh-add
passphrase is stored in memory and automatical logon remote machine is
working fine.
>
>The easiest way to do this is by issuing 
>" ssh-copy-id -i id_rsa.pub remoteuser at remotehost "
>
>See "man ssh-copy-id " 

ssh-copy-id is a great utility in ssh programm suite. Thanks for
pointing out.

Cheers,

-- 
Luqman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20061009/3bc57471/attachment.sig>


More information about the ubuntu-users mailing list