Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
My SSH login is fairly slow on one of my servers (~60s). I have seen the threads recommending turning off DNS lookups, which I did some time ago, but it hasn't made a difference. I have run SSH with the verbose flag, and the output shows that the authentication and such is all working quickly, but after it displays the MOTD, it just hangs there. There is no further output from the SSH command for up to 60s, then it finally gives me a prompt. Any ideas what could be causing this? There is no mention in this output of GSSAPI authentication either, which is pretty much the only other lead I've found from googling the issue. Let me know if you need further information.
run the server in verbose non-daemon mode and look then. You'll seldom get anything useful back from the server, as that in itself could form a security breach.
Not sure where Opensuse logs its syslogd(8) AUTH facility messages. That would be the first thing to figure out. (Perhaps by checking /etc/syslog.conf, assuming Opensuse even uses that!) It would be a good idea to at least check out sshd's chatter in the logs. On RHEL systems, that would be /var/log/secure. And on Debian systems, it's /var/log/auth.log.
As for testing acid_kewpie's suggestion, you can run sshd(8) in non-daemon mode with the -D option. See its manpages for more options and their meanings. You're probably going to want physical console (or ILOM, DRAC, whatever) access to the server while doing this testing.
I just checked the main logs on the server (/var/log/messages) and I found one line that might be related: "sshd[25971]: subsystem request for sftp". Not sure if that is relevant or not, but thought it was worth a shot. The other log files mentioned are non-existent on this system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.