Cannot SSH in or out from servers on same VLAN
by itsallgood from LinuxQuestions.org on (#4YX68)
Hi all,
Linux newbie here.
Brand new Linux VM running CentOS 7. - Let's call it NewVM.
From my computer, let's call it VLAN 1, I can SSH into NewVM in VLAN 2.
However when I try to SSH from NewVM to another server, also in VLAN 2, it fails with "connection timed out". Similarly when I ssh in to another server in VLAN 2 and try to SSH into NewVM, I also get "connection timed out". So both inbound and outbound SSH fails. Both servers on the same network.
This is brand new out of the box, I have not done minimal config in firewalld to open ports 80 and 443 as it is a web server but that is it.
This is the output of ssh -vvv server.domain.edu on NewVM with server.domain.edu being another server in VLAN 2:
Code:debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug2: resolving "server.domain.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to server.domain.com [xxx.xxx.2.xxx] port 22.
debug1: connect to address xxx.xxx.2.xxx port 22: Connection timed out
ssh: connect to host server.domain.com port 22: Connection timed outI get the same thing trying to ssh inbound.
I can ping other hosts from NewVM by hostname and IP. I have tried SSHing with the IP address but that does not work either.
If you have any ideas on what to look out next I would appreciate it. sshd is running. I am not seeing anything in /var/log/secure.
When I run /usr/sbin/sshd -dD on NewVM and attempt to SSH into it from another server in the same VLAN I get:
Code:debug1: sshd version OpenSSH_7.4, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: private host key #0: ssh-rsa
debug1: private host key #1: ecdsa-sha2-nistp256
debug1: private host key #2: ssh-ed25519
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-dD'
debug1: Set /proc/self/oom_score_adj from 0 to -1000
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Bind to port 22 on ::.
Server listening on :: port 22.It never picks up the attempted connection. However as soon as I SSH from the other VLAN it picks it right up obviously.
Any help is appreciated.


Linux newbie here.
Brand new Linux VM running CentOS 7. - Let's call it NewVM.
From my computer, let's call it VLAN 1, I can SSH into NewVM in VLAN 2.
However when I try to SSH from NewVM to another server, also in VLAN 2, it fails with "connection timed out". Similarly when I ssh in to another server in VLAN 2 and try to SSH into NewVM, I also get "connection timed out". So both inbound and outbound SSH fails. Both servers on the same network.
This is brand new out of the box, I have not done minimal config in firewalld to open ports 80 and 443 as it is a web server but that is it.
This is the output of ssh -vvv server.domain.edu on NewVM with server.domain.edu being another server in VLAN 2:
Code:debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug2: resolving "server.domain.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to server.domain.com [xxx.xxx.2.xxx] port 22.
debug1: connect to address xxx.xxx.2.xxx port 22: Connection timed out
ssh: connect to host server.domain.com port 22: Connection timed outI get the same thing trying to ssh inbound.
I can ping other hosts from NewVM by hostname and IP. I have tried SSHing with the IP address but that does not work either.
If you have any ideas on what to look out next I would appreciate it. sshd is running. I am not seeing anything in /var/log/secure.
When I run /usr/sbin/sshd -dD on NewVM and attempt to SSH into it from another server in the same VLAN I get:
Code:debug1: sshd version OpenSSH_7.4, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: private host key #0: ssh-rsa
debug1: private host key #1: ecdsa-sha2-nistp256
debug1: private host key #2: ssh-ed25519
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-dD'
debug1: Set /proc/self/oom_score_adj from 0 to -1000
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Bind to port 22 on ::.
Server listening on :: port 22.It never picks up the attempted connection. However as soon as I SSH from the other VLAN it picks it right up obviously.
Any help is appreciated.