I'm trying to convert the following SSH command on a SSH File entry.
My command is as follows:
ssh -i identity-file.pem -L 20000:internal-host.com:8080 [email protected] -N An this is the current SSH file
Host remote-host-tunnel IdentitiesOnly yes HostName remote-host.com User user PubKeyAuthentication yes IdentityFile ~/.ssh/identity-file.pem ServerAliveInterval 30 Host internal-host-forwarding LocalForward 20000 internal-host.com:8080 Hostname internal-host.com ProxyCommand ssh remote-host-tunnel nc %h %p I'm able to reach the tunnel as folows:
ssh remote-host-tunnel Everything up until this point works fine
But then, when I want to access the internal-host it's not working
ssh internal-host-forwarding -N The connection does not get established
Ncat: Connection timed out.
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535