<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><span>As the keys are
different for each host, I did not put them in the global file system
unlike the ssh configuration (/etc/ssh/sshd_config) which is the same
for each machine.</span><br><span id="b9869036-dec4-40a8-8520-43233be81b58"><br>I tried two solutions :<br>- first, to launch a lab with only network configuration, then to generate keys on the client virtual machine and copy the public one to the server virtual machine ;<br>- second, to create a subdirectory root/.ssh for each virtual machine containing keys and authorized_keys before launching the lab.<br><br>Both fail...<br><br>Regards.<br><br>Olivier<br></span><br>----- Original Message -----<br>From: "Adrian van Dongen" &lt;adrianvandongen@gmail.com&gt;<br>To: "Users of the Netkit Network Emulation System" &lt;netkit.users@list.dia.uniroma3.it&gt;<br>Sent: Wednesday, 3 February, 2010 11:51:02 AM<br>Subject: Re: [Netkit.users] SSH with public key authentication<br><br>Did you put the keys on global file system or on the temporary file system ? Same goes for the changes to the ssh configuration. If you start a new instance your configuration settings will be gone if you don't change them on the global file system, use prepared .disk or if you defined a separate configuration file in the instance directory.<br>
<br>Regards,<br><br>Adrian.<br><br><div class="gmail_quote">On Wed, Feb 3, 2010 at 11:26 AM, Olivier Mémin <span dir="ltr">&lt;<a href="mailto:olivier.memin@mancalanetworks.com" target="_blank">olivier.memin@mancalanetworks.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: Times New Roman; font-size: 12pt; color: rgb(0, 0, 0);"><span>Hi all.<br>
<br>I run two machines on the same collision domain, let's say a server and a client.<br>The server runs sshd, I can access it from the client with the following command<br>&nbsp;&nbsp; ssh root@server_address<br>Then I am requested the password and access is granted if the password is correct.<br>
<br>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@server_address).<br>
On the server, the /etc/ssh/sshd_config file is fulfilled with "PubkeyAuthentication yes" and "RSAAuthentication yes".<br><br>However, when I try to connect from client to server, I am still requested the password for root@server_address...<br>
<br>As this process works on physical hosts running Debian or Ubuntu, I guess it is a Netkit configuration problem. Any idea ?<br><br>Thanks in advance.<br><br>--<br><font color="#888888">OM<br></font></span></div></div><br>
_______________________________________________<br>
Netkit.users mailing list<br>
<a href="mailto:Netkit.users@list.dia.uniroma3.it" target="_blank">Netkit.users@list.dia.uniroma3.it</a><br>
<a href="http://list.dia.uniroma3.it/mailman/listinfo/netkit.users" target="_blank">http://list.dia.uniroma3.it/mailman/listinfo/netkit.users</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>Netkit.users mailing list<br>Netkit.users@list.dia.uniroma3.it<br>http://list.dia.uniroma3.it/mailman/listinfo/netkit.users<br></div></body></html>