starting sshd on knoppix

I’m using Knoppix to teach Linux basics these days, and it took me a while (say, 5 minutes ;-) to find out how to start sshd.

So, more as a note to self than anything else, here’s the recipe (untested, potentially unsafe, I didn’t check it in detail, you’ve been warned) in case ssd says no hostkeys available when you try to start it:

# ssh V1 keys
cd /etc/ssh
sudo ssh-keygen -t rsa1 -f ssh_host_key -C '' -N ''
sudo chmod 600 ssh_host_key
sudo chmod 600 ssh_host_key
sudo chmod 644

# ssh V2 keys
cd /etc/ssh
sudo ssh-keygen -t rsa -f ssh_host_rsa_key -C '' -N ''
sudo chmod 600 ssh_host_rsa_key
sudo chmod 644
sudo ssh-keygen -t dsa -f ssh_host_dsa_key -C '' -N ''
sudo chmod 600 ssh_host_dsa_key
sudo chmod 644


One Response to starting sshd on knoppix

  1. Oliver says:

    I used:

    this creates the keys for the user knoppix and starts sshd.
    I use the following knoppix version: “KNOPPIX_V5.3.1DVD-2008-03-26-EN.iso”


%d bloggers like this: