LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 08-18-2015, 05:14 PM   #1
jim.thornton
Member
 
Registered: May 2007
Posts: 404

Rep: Reputation: 19
Server to Server SSH not working -- Need help troubleshooting please.


Server 1: Up and running for a while
Server 2: Just setup

I've just finished installing a new instance of CentOS 6 for Server 2 (which is the same OS as Server 1). The purpose of Server 2 is to have a backup server that I can remote sync my server backups to.

I can successfully SSH into Server 2 from my home computer.

When I try to SSH in FROM Server 1, it times out.

I have checked the firewall (CSF) and whitelisted the IP address of Server 1.
I have turned off the firewall temporary to see if that was the issue.

Both aren't working. I did create SSH Keys on Server 2 and used ssh-copy-id to get those keys to Server 1. That was successful.

Now, when I go to ssh in, it just times out. No password prompt comes up.

I've tried using the -vvv option with SSH and all it does it time out while trying to connect to Server 2.

Can someone please help me?
 
Old 08-18-2015, 05:19 PM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Is sshd running on server 2? Run the command 'ps aux | grep sshd' to see.
 
Old 08-18-2015, 05:21 PM   #3
jim.thornton
Member
 
Registered: May 2007
Posts: 404

Original Poster
Rep: Reputation: 19
It has to be because I can login via my home computer. Just not via Server 1.
 
Old 08-18-2015, 05:23 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Any messages in /var/log/secure on server 2?
Your ssh keys and copying was in the wrong direction if you want to log in from server 1 to 2 without a password. You need to copy server 1's key to server 2's authorized_keys file, not the other way around.

Can server 1 ssh to itself?
Can server 2 ssh to itself?
Can server 2 ssh to server 1?
<We already know server 1 can't ssh to server 2>
 
Old 08-18-2015, 05:25 PM   #5
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
OK, missed that on you first post. Are these systems on the same lan or different lans? Wondering if this is some type or routing problem. Make sure you can ping both ways.
 
Old 08-19-2015, 04:33 PM   #6
cruedi
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
on server 1

nslookup server2

does this come back with the correct IP?
 
  


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
Need Help with troubleshooting PPTP server with radius client on ubuntu server dr.x Linux - Software 1 03-02-2014 01:58 AM
SSH no working, Ubuntu Server 12.04 thallium Linux - Newbie 11 10-19-2012 05:19 AM
How to access my Linux Server when ssh is not working? vtmckoy Linux - Newbie 4 10-31-2008 04:57 AM
SSH not working from other ubuntu server, but from windows? SimbaSpirit Linux - Software 11 07-03-2008 07:06 PM


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