SlackwareThis 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.
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.
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) ...
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.