I am using a CentOS 7.3.1611 box as an ssh proxy server. Connecting to the proxy server itself works fine and the connection stays open and alive for hours.
Proxying an ssh connection via this server results in the session hanging after about a minute.
CLIENT ---> SSH-PROXY works.
CLIENT ---> SSH-PROXY ---> FOO-SERVER keeps hanging after a few seconds.
I am using these settings in my clients
Host * ServerAliveInterval 30 Host SSH-PROXY HostName EXTERNAL_IP Port 22 User root Host FOO-SERVER proxycommand ssh PROXYSERVER -W 10.1.2.3:22 User root
on the client I can reach out to
I already tried setting:
TCPKeepAlive yes ClientAliveInterval 60
/etc/ssh/sshd_config without any sucess.
What could be the issue here? (The connection to the server itself is rock stable. The exact setup works flawlessly when using Ubuntu 16.04.1 as the proxy server os).