Home > ubuntu > SSH works on two servers, but can't SSH to each other

SSH works on two servers, but can't SSH to each other

August 1Hits:1

I have two Ubuntu servers on my network. I can ssh to both of them from my workstation, but can't ssh from one server to the other. I even stopped ufw on both servers to see if that was the case and checked deny hosts.

When attempting to ssh from [a] to [b], it hangs for a while and then gives a timeout notice.

[email protected][a]:~$ ssh -vvv [b]:22 OpenSSH_4.7p1 Debian-8ubuntu3, OpenSSL 0.9.8g 19 Oct 2007  debug1: Reading configuration data /etc/ssh/ssh_config  debug1: Applying options for *  debug1: /etc/ssh/ssh_config line 54: Deprecated option "FallBackToRsh"  debug2: ssh_connect: needpriv 0  ssh: [b]:22: Name or service not known 

Any ideas on where to start troubleshooting? I need to be able to connect these servers together so I can setup rsync.



ssh -vvv [b]:22

That is the wrong syntax. SSH doesn't accept ports as :22 after the hostname. Use -p to specify a port, or don't pass anything since port 22 is the default.

Your system is trying to resolve the name [b]:22 which doesn't exist. since presumably your host is named [b].

Its saying you cant resolve [b], try sshing with the IP address.

Tags:ubuntu, ssh

Related Articles

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.585 s.