Setting Up sshd With Gentoo
Your K42 root filesystem has to have a correctly configured /etc/ssh. The easiest way to do this is to rlogin to the victim and scp -r root@kreg:/etc/ssh /etc/ssh.
Make sure that /etc/ssh/sshd_config has:
PasswordAuthentication Yes UsePAM No
Make sure /etc/passwd in your K42 root filesystem has a valid entry for the users who will ssh into the K42 victim. This can be done by copying the user entries from your Linux /etc/passwd. If shadow passwords are enabled in your Linux system, this line will have an 'x' in the password field and you need to replace it with the real encrypted password (which lives in /etc/shadow).
Add the user sshd to your K42 passwd file:
sshd:x:22:22:sshd:/dev/null:/bin/false
When booting K42 with k42console, don't forget to specify that you want the Gentoo file system as root. To learn how to do this, see LamMpiSetupWatson.
Finally, start the ssh daemon, using /usr/sbin/sshd after rlogin to the victim, or passing K42_INIT_SSHD=/usr/sbin/sshd to your k42console invocation.
