[Netkit.users] SSH with public key authentication

Olivier Mémin olivier.memin at mancalanetworks.com
Wed Feb 3 12:03:52 CET 2010


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. 

I tried two solutions : 
- 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 ; 
- second, to create a subdirectory root/.ssh for each virtual machine containing keys and authorized_keys before launching the lab. 

Both fail... 

Regards. 

Olivier 

----- Original Message ----- 
From: "Adrian van Dongen" <adrianvandongen at gmail.com> 
To: "Users of the Netkit Network Emulation System" <netkit.users at list.dia.uniroma3.it> 
Sent: Wednesday, 3 February, 2010 11:51:02 AM 
Subject: Re: [Netkit.users] SSH with public key authentication 

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. 

Regards, 

Adrian. 


On Wed, Feb 3, 2010 at 11:26 AM, Olivier Mémin < olivier.memin at mancalanetworks.com > 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". 

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 



_______________________________________________ 
Netkit.users mailing list 
Netkit.users at list.dia.uniroma3.it 
http://list.dia.uniroma3.it/mailman/listinfo/netkit.users 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.dia.uniroma3.it/pipermail/netkit.users/attachments/20100203/0cbb3bbf/attachment.htm 


More information about the Netkit.users mailing list