LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2003, 02:56 PM   #1
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
sshd starts slooooowly


Hi Guys,

I've asked this question on LQ before, but
couldn't find a satisfactory answer.

Why could sshd possibly take 30 seconds to start
up on a PIV 1.8GHZ?

I subscribed to the ssh list and asked the quesstion
there, however, the mod felt it doesn't fit his list, bounced
my mail and told me to go ask in a Slackware-specific
forum ... :/

I find it annoying to wait for 30 seconds for something
that used to take like 2 seconds on my old machine
(a PII 266) ...

Cheers,
Tink
 
Old 04-13-2003, 03:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Does it stop and start OK after boot?

You could try stopping it then starting it in debug mode:
sshd -ddde

The e forces it to print the data to the console rather than the message log. This should let you see at what point it is slow.
 
Old 04-13-2003, 05:15 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067

Original Poster
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
/me is puzzled, scratches his head ...

Well, takes about a split second that way,
no error messages whatsoever....

Cheers,
Tink
 
Old 04-13-2003, 05:18 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
That does seem odd.

Maybe there is something about the first time it is run. What about stopping it from running on boot then starting it manually afterwards with the debug command?
 
Old 04-13-2003, 05:26 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
How about stracing it: "strace -v -tt -T -o strace.sshd.log sshd -ddde" to get all the gory details and log to strace.sshd.log, or first add "-c" to only get an overview of time spent in syscalls when the app stops, maybe that'll help. I bet it's a resolving issue.
 
Old 04-13-2003, 09:29 PM   #6
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
Could one end be attempting X11 forwarding but then failing on the other?

I have had similar experiences when logging in from stations with real world IP addresses that the ISP does not provide proper reverse mapping assignments. The system is attempting to do a reverse IP resolution and it can take some time just for it to fail. To test, add your station IP into the /etc/hosts file on the machine if it is static. You can also review the server logs and see if it was able to resolve your IP to a name.

It could also be attempting ssh2 authentication and then failing and falling back to ssh1, then finally asking for a password.

I have also experienced it with servers that are on a dialup gateway and they have other traffic using the bandwidth.

Review closely your /etc/ssh/sshd_config file. Perhaps something needs to be turned off or turned on.

Just some other possiblities to consider.
 
  


Reply



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 x 3 Martin Strand Linux - Newbie 1 05-11-2005 04:45 PM
Help sshd kicken Linux - Networking 2 05-25-2004 07:15 AM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 12:17 PM
sshd kylo8787 Linux - Networking 4 04-15-2002 05:14 PM
sshd archangel Linux - Security 3 07-19-2001 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:47 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
Open Source Consulting | Domain Registration