LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 04:14 PM   #1
jim.thornton
Member
 
Registered: May 2007
Posts: 430

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, 04:19 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

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

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, 04:23 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 04:25 PM   #5
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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, 03:33 PM   #6
cruedi
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 11
on server 1

nslookup server2

does this come back with the correct IP?
 
  


Reply



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 12:58 AM
SSH no working, Ubuntu Server 12.04 thallium Linux - Newbie 11 10-19-2012 04:19 AM
How to access my Linux Server when ssh is not working? vtmckoy Linux - Newbie 4 10-31-2008 03:57 AM
SSH not working from other ubuntu server, but from windows? SimbaSpirit Linux - Software 11 07-03-2008 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:03 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
Open Source Consulting | Domain Registration