can't get sshd started - using knoppix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers can't get sshd started - using knoppix
# 1  
Old 09-01-2006
can't get sshd started - using knoppix

i don't have /etc/inet.d/sshd

>which sshd
/usr/sbin/sshd


when I try to run sshd
>sshd <ENTER>
...could not load hostkey....

i don't have a copy and paste , but perhaps somebdoy here recognizes the message

thanks in advance
# 2  
Old 09-01-2006
You either don't have a host key, or it has the wrong permissions.
go to your ssh directory (probably /etc/ssh ) and check that you have a ssh_host_rsa_key and/or a ssh_host_rsa_key. and that they are owned by root:root and have 600 permissions.
If not, run :
Code:
# ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
# ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""

Read the sshd and ssh man pages for mkore info.
# 3  
Old 09-01-2006
thank you, that worked. now sshd works. nmap showed port 22 open. netstat listed port :22.

But now I don't know how to log in!

I didn't actually set up the accoutns on the knoppix machine..it was automatic. I guess there are two. One called knoppix, the other root. If I do whoami it says knoppix. If I type su , the prompt changes to root.
I have no idea what the password is for either of them. Though from the machine itself, once i'm int knoppix and run su, I go straight to root no password necessary.
# 4  
Old 09-03-2006
I believe the knoppix root password is auto-scrambled for security. You'll have to set it from a root prompt before you can remote-login as root.
# 5  
Old 09-03-2006
many thanks to both of you..

The ssh-keygen worked.. and the changing the password on root worked(passwd command) and allowed me to log in through ssh as root. Additionally, I created a new user (useradd/adduser)
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

job is started with sshd daemon; wish to know its implementation details

Hello Gurus, In solaris server, one folder say /appl/prod/usr/sendme get files those need to be processed. The script named checkFile.sh can process the each file. This script checkFile.sh is not scheduled in crontab. But whenever file puts in sendme folder, the checkFile.sh is called and... (1 Reply)
Discussion started by: get_chandrakant
1 Replies

2. UNIX for Dummies Questions & Answers

Knoppix; What's the gist of it.

I have a couple of Rescue Disks I was experimenting with and someone suggested that I use Knoppix instead. I have the newest version of it and it seems more like an Emergency O.S than anything else. The only useful tool I can find on it is Gparted. Do you have to add Emergency Applications to it? ... (5 Replies)
Discussion started by: theKbStockpiler
5 Replies

3. Red Hat

sshd started, but ssh/sftp/psftp not working

The OS is CenOS. The sshds is started, but ssh/sftp/psftp are not working with "time out" errors. # service sshd status openssh-daemon (pid 2894) is running... # tail /var/log/secure Feb 16 10:56:47 cenos userhelper: pam_timestamp(system-config-securitylevel:session): updated... (3 Replies)
Discussion started by: aixlover
3 Replies

4. UNIX for Dummies Questions & Answers

Knoppix

Hello All, I have a Knoppix CD. I am able to boot Knoppix(Linux) from the CD. How do I save a document that I created using OpenOffice(Writer) to either my harddrive on Windows or to a USB instead of the CD itself. I am new to Knoppix and am not sure of the GUI. I tried mounting the USB... (2 Replies)
Discussion started by: AnilAnand
2 Replies

5. SuSE

knoppix

Hi, I want to learn linux but I don't want to install on my hard drive. I came to know about knoppix that could give me the answer. But If I download the same (approx 700 MB) from free download site and copy it to CD, Will it work ? please help. (2 Replies)
Discussion started by: sanjay1979
2 Replies

6. AIX

It helps in the sshd on sshd.log

Friends, I made the installation of the ssh in the it conspires, I configured in the ssh_config the following parameters.. SyslogFacility AUTH LogLevel INFO that should generate sshd.log in the /var/log.... more no this generating. Somebody could help myself in... (0 Replies)
Discussion started by: sandba
0 Replies

7. Ubuntu

How can I get Knoppix on HDD

Umm How can I get the Knoppix can be booted off my hard drive instead of the CD. I dont like using the CD. :confused: (4 Replies)
Discussion started by: shade11
4 Replies

8. UNIX for Advanced & Expert Users

About the usage of knoppix

I hv boot my crashed RH server with knoppix linux cd , the server can connect internet now , I want to copy some files from my server to internet , but now I only found the below device path , could suggest how can I see my original path (eg. /home/ , /usr , / tmp etc, because I hv some important... (1 Reply)
Discussion started by: ust
1 Replies

9. Debian

knoppix version?

hi all again!! just a stupide question: how do you find the version of a knoppix? like the /etc/mandrake-release on mdk machines?? I have no idea of where to search.. Jason (5 Replies)
Discussion started by: penguin-friend
5 Replies

10. UNIX for Dummies Questions & Answers

KNOPPIX CD not Booting

I have downloaded KNOPIIX and burned it on a CD, it niether boots from CD nor could I open the file, it seems the extension is .iso, would you mind sending me your comment,please. Thank you very much (2 Replies)
Discussion started by: amir
2 Replies
Login or Register to Ask a Question