[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] How to ssh to Knoppix?



Conrad Newton wrote:
From Larry Alkoff on Thursday, 2005-05-12 at 11:39:44 -0500:

I am trying to ssh into Knoppix from another Linux computer.


When I issue from the remote machine Linda:
   ssh -l knoppix Knoppix
the error message appears:
   ssh: connect to host Knoppix port 22: Connection refused

The firewalls are disabled on both while testing.
Even if the firewalls were running they allow both both source and destination TCP packets on port 22.

On the remote machine Linda I have setup ssh with
ssh -keygen -t rsa to get a passphrase
and copied my authorized_keys file to Knoppix ~/.ssh/authorized_keys.

What dumb thing am I doing wrong?


Excuse me for asking a stupid question in response,
but do you have the ssh daemon running?


Certainly not a stupid question.
It is me that didn't know about starting the ssh daemon.


If you type

netstat -tpan

into a root shell on the Knoppix machine,
you will see if ssh is running.  If the output
does not mention sshd, you need to start it
by typing

/etc/init.d/ssh start

(also in a root shell) on the Knoppix machine.
Or from an xterm or konsole:

sudo /etc/init.d/ssh start

Thank you.  It's started now.

Now that sshd is started, how do I load it each time?
There is no rc.local.
My Knoppix loads /home/knoppix from a thumb drive.

By default, Knoppix does not run any services that would
allow you to connect to it -- this is a security feature.

Conrad


When I started sshd some messages appeared about generating a key
and a new /etc/ssh directory was created with a bunch of files.

In addition I have copied my authorized_keys files from the client Linda to Knoppix in ~/.ssh.

Now the command
ssh -l knoppix Knoppix
gives the error command:
The authenticity of host 'knoppix (192.168.0.23)' can't be established.
RSA key fingerprint is a4:xxxxxxxxxxxxxxxxxxxxxxx:2d.
Are you sure you want to continue connecting (yes/no)?

Please forgive me but I'm pretty new to ssh.
What to do now?


Thank you for your help in getting me this far Conrad.

--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Slackware Linux


Reply to: