[Netkit.users] SSH with public key authentication

Julien Iguchi-Cartigny julien.cartigny at unilim.fr
Wed Feb 3 12:10:24 CET 2010


On 02/03/2010 11:26 AM, Olivier Mémin wrote:
> Hi all.
> 
> I run two machines on the same collision domain, let's say a server and
> a client.
> The server runs sshd, I can access it from the client with the following
> command
>    ssh root at server_address
> Then I am requested the password and access is granted if the password
> is correct.
> 
> I would like now to configure public key authentication. I have
> generated RSA keys on the client (ssh-keygen -t rsa) and I have
> transferred the public key on the server (ssh-copy-id -i
> /root/id_rsa.pub root at server_address).
> On the server, the /etc/ssh/sshd_config file is fulfilled with
> "PubkeyAuthentication yes" and "RSAAuthentication yes".

First, the public key must be put in the file ~/.ssh/authorized_keys and
rights of this file must be rwx------. It seems all of this is done by
ssh-copy-id, but please check first.

Furthemore, in /etc/ssh/sshd_config please add (or modify) the following
line:

PermitRootLogin yes

Then, if nothing work, please check the logs...

Julien.

> However, when I try to connect from client to server, I am still
> requested the password for root at server_address...
> 
> As this process works on physical hosts running Debian or Ubuntu, I
> guess it is a Netkit configuration problem. Any idea ?
> 
> Thanks in advance.
> 
> --
> OM
> 
> 
> 
> _______________________________________________
> Netkit.users mailing list
> Netkit.users at list.dia.uniroma3.it
> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users


-- 
"Trouble-a-cat limited"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: julien_cartigny.vcf
Type: text/x-vcard
Size: 312 bytes
Desc: not available
Url : http://list.dia.uniroma3.it/pipermail/netkit.users/attachments/20100203/59176944/attachment.vcf 


More information about the Netkit.users mailing list