Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
|
07-29-2004, 06:38 PM
|
#1
|
LQ Newbie
Registered: Jul 2004
Posts: 5
Rep:
|
SSH takes a long time (2 minutes) to connect
I have a linux box and whenever I try to connect to it, it takes a long time( 2 minutes) to connect using ssh from any other machine (even on the same LAN) before the prompt for password comes up. Then I tried sshing the machine from the same machine and even that took the same time. I ran ssh with the verbose option and it seems that a lot of time is spent on the
debug1: identity file /home/mani/.ssh/id_dsa type -1
line before
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.5p1
debug1: match: OpenSSH_3.5p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.5p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
......
appear and I get logged on
This is where the ssh gets stuck seemingly.
OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to crestlab34.ece-int.gatech.edu [192.168.26.23] port 22.
debug1: Connection established.
debug1: identity file /home/mani/.ssh/identity type -1
debug1: identity file /home/mani/.ssh/id_rsa type -1
debug1: identity file /home/mani/.ssh/id_dsa type -1
If someone can help me with this problem, I would really appreciate it.
Thanks in advance.
|
|
|
07-30-2004, 03:02 PM
|
#2
|
LQ Newbie
Registered: Jul 2004
Posts: 5
Original Poster
Rep:
|
Anyone has any suggestion?
Thanks.
|
|
|
07-30-2004, 03:23 PM
|
#3
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
Not sure ... but I wonder if it's timing out trying to do a reverse DNS lookup. Do you have DNS or an /etc/hosts entry that resolves the name of the host you are connecting from?
|
|
|
07-30-2004, 04:12 PM
|
#4
|
Member
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158
Rep:
|
turn off the option to do reverse hostname lookups.
hope i could help!!!!
|
|
|
07-31-2004, 10:04 PM
|
#5
|
LQ Newbie
Registered: Jul 2004
Posts: 5
Original Poster
Rep:
|
Yes, I actually I had done that because I had read about it. But, that did not seem to help.
Thanks though.
|
|
|
07-31-2004, 10:37 PM
|
#6
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
Looking at your first post again, maybe it's something with the id_dsa file it's trying to look at in your .ssh directory. Does such a file actually exist? If so it might be trying to do authentication with DSA public key encryption, and then falling back to password authentication. This is just a guess, but did you ever try to get something like that set up?
|
|
|
All times are GMT -5. The time now is 08:21 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
|
|