LinuxQuestions.org
Review your favorite Linux distribution.
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 03-02-2012, 03:42 AM   #1
laks
Member
 
Registered: Feb 2012
Posts: 34

Rep: Reputation: Disabled
ways to troubleshoot ssh connectivity


Hello,

I have a requirement to connect to a remote server via ssh. I verified the below with all three getting response from remote server.

Telnet <remotehostip> 22
ping remotehostip
traceroute remotehostip.

However, when i type ssh user@remotehost, the session seems to be hanging with no response. Any pointers on how I can debug this further.

Thanks,
Lakshmi
 
Old 03-02-2012, 03:50 AM   #2
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Quote:
Originally Posted by laks View Post
Hello,

I have a requirement to connect to a remote server via ssh. I verified the below with all three getting response from remote server.

Telnet <remotehostip> 22
ping remotehostip
traceroute remotehostip.

However, when i type ssh user@remotehost, the session seems to be hanging with no response. Any pointers on how I can debug this further.

Thanks,
Lakshmi
what sort of access do you have on remotehost?

You could try
Code:
ssh user@remotehost -vvv
, which will give you loads of debug information.
 
Old 03-02-2012, 03:50 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
add a few -v's to the command line, and read the log files on the server. Most SSH hangs tend to be down to DNS reverse lookups being done by the client. This is usually only 30 seconds max though, and can be turned off in sshd_config on the server.
 
  


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 connectivity amit kanojiya Linux - Newbie 1 09-21-2011 08:53 AM
[SOLVED] SSH connectivity metallica1973 Linux - Security 32 08-18-2011 01:48 PM
[SOLVED] ssh Connectivity problems. gdonwallace Linux - Networking 2 12-01-2009 06:41 PM
How to troubleshoot linux connectivity problems JJEFF Linux - Networking 11 11-07-2003 12:59 AM
SSH connectivity issues wvrhlu Linux - Software 11 04-01-2003 09:59 PM


All times are GMT -5. The time now is 06:22 AM.

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