LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-26-2014, 02:36 PM   #1
MDara
LQ Newbie
 
Registered: Feb 2014
Posts: 5

Rep: Reputation: Disabled
Unable to SSH: Connection timeout.


Hi,

I am running Oracle Linux 6.5 on 2 of my servers.

I am trying to SSH from Server A to Server B.

I am able to SSH from server B to A.

iptables -L on Server B has:
ACCEPT tcp -- Server A anywhere state NEW tcp dpt:ssh

Can you please help me troubleshoot what could be causing the problem.

Thanks,
MD
 
Old 02-26-2014, 02:49 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
Is the sshd server on B running?
 
Old 02-26-2014, 02:57 PM   #3
MDara
LQ Newbie
 
Registered: Feb 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Yes the openssh-deamon is running
 
Old 02-26-2014, 03:05 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
I have no experience with Oracle, but have you checked the applicable log files on the server for errors (eg: /var/log/messages or /var/log/security), or tried the "-v" flag in your ssh command?
 
Old 02-26-2014, 03:24 PM   #5
MDara
LQ Newbie
 
Registered: Feb 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
No errors recorded in any of the files. Also the /etc/ssh/ssh_config is similar on both the servers.
 
Old 02-26-2014, 03:32 PM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
Quote:
Originally Posted by MDara View Post
.

I am trying to SSH from Server A to Server B.
I assume this is what is not working

do you get an error message?
if so, what is it?

Edit:

also please provide the ssh command
I don't care about the IP/FQDN ..
example
Code:
ssh bob@serverb
also, can you confirm that 'bob' is a valid username on server B

Last edited by Firerat; 02-26-2014 at 03:35 PM.
 
Old 02-26-2014, 03:44 PM   #7
MDara
LQ Newbie
 
Registered: Feb 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Got it working.
The order of the rules in iptables was the issue. Once I had the rule to allow traffic from Server A on port 22 before the reject all traffic rule, it worked fine.

Thank you all for your ideas.

-MD
 
  


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
Postfix Server unable to send certain emails :: Error - read timeout on connection custangro Linux - Enterprise 1 05-23-2012 10:50 AM
[SOLVED] ssh connection timeout when trying to go through router vlsd Linux - Networking 5 05-07-2011 01:48 PM
MacOSX to RHEL5/6 ssh connection timeout landev Linux - Networking 6 04-06-2011 11:09 AM
Unable to open more than one SSH Connection joehansen Linux - Server 5 10-07-2009 12:45 PM
How can I force and SSH connection to timeout after 60 minutes? abefroman Linux - Server 1 08-14-2009 09:07 PM


All times are GMT -5. The time now is 09:48 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