LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-08-2003, 09:46 AM   #1
jonnyb
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake, Knoppix, Debian
Posts: 8

Rep: Reputation: 0
couldn't start SSHD


hi,
i've searched a long time in this board to find my proplems solution. but no way.

i couldn't start my sshd. yesterday it worked and today no chance and i haven't any more ideas why not. i use debian woody - only console. the ssh server package should be installed.
when i type sshd no reaction and nothing to see with "ps aux" (normaly it has worked with SSHD!?)
when i use the "sshd start" which i've never used bevore it gives me: "extra argument start" also in with "stop" and "restart"

when i "locate" my sshd i can find it in /etc/sbin/ and /var/run/.

the network works and it seems that everything is ok. but sshd don't start. i think that this is caused by a little, little mistake from me again. but i don't find it. as i've said: yesterday it works.

thanx,hi,
i've searched a long time in this board to find my proplems solution. but no way.

i couldn't start my sshd. yesterday it worked and today no chance and i haven't any more ideas why not. i use debian woody - only console. the ssh server package should be installed.
when i type sshd no reaction and nothing to see with "ps aux" (normaly it has worked with SSHD!?)
when i use the "sshd start" which i've never used bevore it gives me: "extra argument start" also in with "stop" and "restart"

when i "locate" my sshd i can find it in /etc/sbin/ and /var/run/.

the network works and it seems that everything is ok. but sshd don't start. i think that this is caused by a little, little mistake from me again. but i don't find it. as i've said: yesterday it works.

thanx,
Jo
 
Old 02-09-2003, 07:13 PM   #2
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 30
This may seem a stupid question, but have you tried to ssh to your box?
 
Old 02-10-2003, 05:50 AM   #3
jonnyb
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake, Knoppix, Debian
Posts: 8

Original Poster
Rep: Reputation: 0
hi,
maybe im very stupid.)
but how can i understand that. do you mean if i've connected ssh from my pc with my pc (sshd)?

maybe i've done something like this while i was working with the client and i haven't noticed it. i don't know.

how can i check it?
 
Old 02-10-2003, 11:14 AM   #4
sheryco
Member
 
Registered: Feb 2003
Location: FTWorth, TX
Distribution: Gentoo, Debian, CentOS, FreeBSD, NetBSD & OpenBSD
Posts: 55

Rep: Reputation: 15
you can also check if your sshd is running by using the ssh login: slogin -l <username> machine IP -p <port>
first. If it connects your ssh is running.
 
Old 02-10-2003, 12:14 PM   #5
jonnyb
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake, Knoppix, Debian
Posts: 8

Original Poster
Rep: Reputation: 0
ok, if've checked it but no sshd is runnig:
... port 22: Connection Refused

..?
 
Old 02-10-2003, 12:18 PM   #6
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
and what happens when you run :

/etc/init.d/sshd start

?
 
Old 02-10-2003, 03:00 PM   #7
jonnyb
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake, Knoppix, Debian
Posts: 8

Original Poster
Rep: Reputation: 0
/etc/init.d/#sshd start
Extra argument start.

..what is the meaning of Extra argument...?

i am thinking to deinst. and inst. sshd new again. what do you think?

..can anyone tell me how the package with sshd is called?
i will use APT to install it.
 
Old 02-10-2003, 04:31 PM   #8
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
The 'Extra argument' means it's not expecting to see 'start' after the command.

My question is what's the extra '#' doing there?

You can, by all means, try re-installing it. You can get ssh (client and daemon) from http://www.openssh.org

openssh is the package you want.

They have a tarball there you can use. I'm not sure if you can use redhat rpm's, but they have those there too.

Slick.
 
Old 02-10-2003, 05:56 PM   #9
WeNdeL
Member
 
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344

Rep: Reputation: 30
ssh rules...
 
Old 02-10-2003, 06:21 PM   #10
jonnyb
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake, Knoppix, Debian
Posts: 8

Original Poster
Rep: Reputation: 0
hi,
i've installed the ssh again. after the download and preconfig. (with APT) it started the sshd automtically.

but now its the same like before during the boot. it starts the sshd without error messages but i couldn't see or use it. maybe its hidden but how can i make it visible..? oooh i don't know...
 
Old 02-11-2003, 04:55 AM   #11
jonnyb
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake, Knoppix, Debian
Posts: 8

Original Poster
Rep: Reputation: 0
ok, listen:
i have installed it new again but in this case i have deleted the folder /etc/ssh/ before, because this wasn't removed automtically during the deinst. process.
(in the post before i haven't deleted it - and it doesn't work)

i installed the ssh package with APT again. and now it WORKS! ok, i've had to genarate a new key on my client but everything is ok.

AFTER THE RESTART the same again. SSHD started automatically during the boot but i couldn't find it.

so, i think the mistake can only be in the boot process and it must have something to do with the folder /etc/ssh/ - because it only works when i have deleted it before.
this folder contains:
ssh_host_dsa_key, ssh_host_dsa_key.pub, ssh_host_rsa_key.pub, ssh_host_rsa_key and the sshd_config.

or is it possilbe that it has something to do with the runlevel it was started?

ok. any questions? i've al lot.

thanx.

Last edited by jonnyb; 02-11-2003 at 05:00 AM.
 
Old 02-11-2003, 10:21 AM   #12
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Um... I'm confused.

What exactly is it you can't find. You say :

>SSHD started automatically during the boot but i couldn't find it.

If you look in your process list you should see :

root 765 1 0 Jan01 ? 00:00:02 /usr/sbin/sshd

or suchlike. Is this what you're not seeing?
Your *config* files will live in /etc/ssh and those I see there sound about right.

If you want to check its run levels then :

#chkconfig --list

sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

What exactly is the problem you're having...
 
Old 02-11-2003, 02:42 PM   #13
jonnyb
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake, Knoppix, Debian
Posts: 8

Original Poster
Rep: Reputation: 0
hi,
sorry, when i'm not explaining enough what i mean.

with not seeing, i mean that i couldn't see the sshd in my processlist (when i type ps aux)

i can see (and use) sshd in the process list:

after the new installation (but only when i've manually removed the /etc/ssh/ before the installation)

BUT after the reboot i couldn't see the sshd in the list.
also, i couldn't use it.

the only thing what i see is that it automatically starts on boot and stopps when i "halt" the system.

i tested chkconfig but it doesn't work on my deian.?
i couldn't find the file too.

i hope you know more...
 
Old 02-12-2003, 02:13 PM   #14
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
try :

ps -ef | grep ssh

Any debian users out here who know how to check the runlevels of services?

Slick.
 
Old 02-16-2003, 04:39 PM   #15
jonnyb
LQ Newbie
 
Registered: Feb 2003
Distribution: Mandrake, Knoppix, Debian
Posts: 8

Original Poster
Rep: Reputation: 0
hi,
want to say thanx. it works. what the exactly reason for this problem was i don't know. i installed my debian new again and installed / configurated the ssh package during the installation
cu,
JOnBY)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSHD Won't Start after Server Reboot Louie55 Linux - Software 2 01-20-2005 09:34 PM
How do I automatically start sshd? jdruin Linux - Software 1 07-05-2004 10:07 PM
sshd start on boot mblanco2000 Linux - Security 5 05-18-2004 05:13 PM
getting sshd to start at boot eros Linux - Software 8 12-31-2003 02:06 PM
SSHD start on boot problem... Cephlen Linux - Software 4 10-31-2002 04:50 PM


All times are GMT -5. The time now is 01:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration