LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   strange ssh problem (https://www.linuxquestions.org/questions/linux-newbie-8/strange-ssh-problem-770968/)

vinaytp 11-23-2009 08:10 AM

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.

TB0ne 11-23-2009 08:50 AM

Quote:

Originally Posted by vinaytp (Post 3766685)
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.

vinaytp 11-23-2009 08:56 AM

Quote:

Originally Posted by TB0ne (Post 3766732)
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...


All times are GMT -5. The time now is 03:14 PM.