Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
|
01-05-2009, 08:34 AM
|
#1
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657
Rep:
|
SSH login takes 1-2 minutes
Hi.
At least one of my servers is hanging quite a bit when logging in (via SSH). After typing in a username and password, it takes 1-2 minutes before I'm logged in.
The server is a RHEL 5.1 box running on Vmware ESX.
I've noticed that running "hostname -s" takes approximately 5 seconds to complete. If this is a symptom of a DNS-problem than maybe this may explain why login takes so long. But I'm not quite sure where to begin debugging. Does anyone have a tip on what may be causing this?
Regards,
kenneho
|
|
|
01-05-2009, 08:41 AM
|
#2
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
You can start by using the verbose option of ssh. Use one of the following
Code:
ssh -v user@host
ssh -vv user@host
ssh -vvv user@host
to get an increased level of debugging output. In this way you can see exactly where the ssh command hangs.
|
|
|
01-05-2009, 08:44 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,146
|
Quote:
Originally Posted by kenneho
Hi.
At least one of my servers is hanging quite a bit when logging in (via SSH). After typing in a username and password, it takes 1-2 minutes before I'm logged in.
The server is a RHEL 5.1 box running on Vmware ESX.
I've noticed that running "hostname -s" takes approximately 5 seconds to complete. If this is a symptom of a DNS-problem than maybe this may explain why login takes so long. But I'm not quite sure where to begin debugging. Does anyone have a tip on what may be causing this?
|
It does sound like a DNS issue. I'd check to make sure that the DNS servers you've got specified in /etc/resolv.conf are correct. Also, you might want to try to add your server (or make sure it's there), to the /etc/hosts file.
There are some gotchas with RHEL5 on VMware...time drift is one of them, and I know there's a patch specifically to address that on VMware, that you don't need for a 'real' server. Might want to call RedHat and see if there's something out there for it...
|
|
|
01-05-2009, 09:21 AM
|
#4
|
Member
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657
Original Poster
Rep:
|
Quote:
Originally Posted by TB0ne
It does sound like a DNS issue. I'd check to make sure that the DNS servers you've got specified in /etc/resolv.conf are correct. Also, you might want to try to add your server (or make sure it's there), to the /etc/hosts file.
There are some gotchas with RHEL5 on VMware...time drift is one of them, and I know there's a patch specifically to address that on VMware, that you don't need for a 'real' server. Might want to call RedHat and see if there's something out there for it...
|
I think you're right: I've lost connection with one of the DNS-servers. After removing it from /etc/resolv.conf everything is back to normal. Thanks for your help (both you and colucix).
|
|
|
01-05-2009, 09:40 AM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,146
|
Quote:
Originally Posted by kenneho
I think you're right: I've lost connection with one of the DNS-servers. After removing it from /etc/resolv.conf everything is back to normal. Thanks for your help (both you and colucix).
|
No problem....glad to have helped.
|
|
|
All times are GMT -5. The time now is 10:05 AM.
|
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
|
|