LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-23-2009, 08:10 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
strange ssh problem


Hi all....

I have fedora 9 machine with sshd running

when i try to connect to one of my machines in the network say
Code:
ssh gaurav@172.17.70.18
It will take hardly a second to connect...

Whereas for other systems in the same subnet it takes at least 2 minutes to connect...

Why is this so...??

Can anyone help me with this....Any help will be greatly appreciated.
 
Old 11-23-2009, 08:50 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,788

Rep: Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162
Quote:
Originally Posted by vinaytp View Post
Hi all....

I have fedora 9 machine with sshd running

when i try to connect to one of my machines in the network say
Code:
ssh gaurav@172.17.70.18
It will take hardly a second to connect...

Whereas for other systems in the same subnet it takes at least 2 minutes to connect...

Why is this so...??

Can anyone help me with this....Any help will be greatly appreciated.
Who can tell? You don't give any information about your network, where the other systems are, how you're trying to connect (hostname or ip?), or what those other machines are running.

Chances are, you're either having a DNS issue, or your system is trying to do a reverse-lookup on the IP address, and is timing out. Either put the entries in your hosts file, or get up-to-date information in your DNS server.
 
Old 11-23-2009, 08:56 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by TB0ne View Post
Who can tell? You don't give any information about your network, where the other systems are, how you're trying to connect (hostname or ip?), or what those other machines are running.

Chances are, you're either having a DNS issue, or your system is trying to do a reverse-lookup on the IP address, and is timing out. Either put the entries in your hosts file, or get up-to-date information in your DNS server.
Hello TB0ne

I got the answer..
Just need to add in /etc/hosts file and restart sshd daemon...
 
  


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
strange ssh problem vinaytp Linux - Newbie 4 10-15-2009 12:54 AM
strange problem in ssh lin2winwin Linux - Networking 2 12-26-2007 05:56 AM
Strange SSH problem graw Linux - Networking 6 12-15-2004 04:47 PM
strange ssh problem yull Linux - Security 8 12-11-2004 02:58 PM
Strange ssh problem Inexactitude *BSD 2 04-05-2004 01:37 PM


All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration