[Netkit.users] ssh password

Massimo Rimondini rimondin at dia.uniroma3.it
Wed Feb 6 20:01:37 CET 2008

Hi all,

> Shame on us !!!
> It works! :) Looks like yesterday we were to tired ;)
> We were not adding root@ before connecting SSH to the virtual machine.

Even the best make mistakes :-)

As for the ssh access, you have (at least) three ways to go with the
current version of Netkit:

   1. Do as you suggested: set a password for the root account and use
      it for remote logins. To preserve the password for future reuse,
      you can save the file /etc/shadow from the virtual filesystem and
      include it as part of your lab.
   2. Enable passwordless login. If your virtual machines are to be
      Internet connected (via tap), this is not truly advisable, unless
      you know what you are doing.
      However, to go this way you have to edit /etc/ssh/sshd_config and
      turn "PermitEmptyPasswords" to "yes", then edit
      /etc/pam.d/common-auth and replace the "nullok_secure" with
      "nullok". There you are.
   3. The last alternative is to use a different authentication
      mechanism (i.e., public key).


More information about the Netkit.users mailing list