Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-13-2003, 02:56 PM
|
#1
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
04-13-2003, 03:24 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
04-13-2003, 05:15 PM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Original Poster
|
/me is puzzled, scratches his head ...
Well, takes about a split second that way,
no error messages whatsoever....
Cheers,
Tink
|
|
|
04-13-2003, 05:18 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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?
|
|
|
04-13-2003, 05:26 PM
|
#5
|
Moderator
Registered: May 2001
Posts: 29,415
|
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.
|
|
|
04-13-2003, 09:29 PM
|
#6
|
Senior Member
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|