I have a two network interfaces machine, one is connected to the router and gets an automatic address via DHCP. The other has a static IP in a different subnet. I can ping both IP addresses, telnet to port 22 and see the "SSH prompt".. just fine. (trying them with switching the cable in my notebook)
Question: but when it comes to connecting to this machine via SSH I can only connect through the NIC that is connected via the router, not directly. It just timeouts when I try to connect directly. Why?
The firewall rules are the default, tried rebooting both sides, I only modified the "UseDNS to no" in the sshd_config
on the machine.
cat /etc/ssh/sshd_config | grep Listen
and check running daemon withnetstat -putan | grep ssh
. – chaos Jan 14 '14 at 07:15ssh -v user@domain
(you might need to be prepared to supply more detailed logssh -vv
or-vvv
if need be). You might also want to runsshd -d
(-ddd
) on the server on an alternative port, try connecting to that and then looking at the log from the SSH daemon. – peterph Jan 14 '14 at 08:12sshd
is probably listening on that device as well. – peterph Jan 14 '14 at 08:13.ssh/config
, no protocol-aware router in the middle)? If you are, then post the output ofssh -vv
. – Gilles 'SO- stop being evil' Jan 14 '14 at 21:05