LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 07-29-2004, 06:38 PM   #1
jinju
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Rep: Reputation: 0
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.
 
Old 07-30-2004, 03:02 PM   #2
jinju
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Anyone has any suggestion?


Thanks.
 
Old 07-30-2004, 03:23 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,108

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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?
 
Old 07-30-2004, 04:12 PM   #4
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
turn off the option to do reverse hostname lookups.



hope i could help!!!!




 
Old 07-31-2004, 10:04 PM   #5
jinju
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Yes, I actually I had done that because I had read about it. But, that did not seem to help.

Thanks though.
 
Old 07-31-2004, 10:37 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,108

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh login takes several minutes exodist *BSD 10 05-26-2005 03:17 PM
login takes long time doorman007 Linux - Software 2 04-25-2005 12:56 AM
Bzipping takes a really long time sometimes scott_R General 0 10-10-2004 12:47 AM
Booting process takes long time. benoy4007 Red Hat 8 06-13-2004 11:35 AM
binding to YPserver takes a long time esteeven Linux - General 1 04-24-2004 02:46 AM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration