I am trying to configure ESXi's host sshd_config file and added "GatewayPorts yes" to enable port-forwarding
After that, I restarted ssh and used the auto-backup.sh script to save my changes.
My goal ist to access my SSH-VMs via the ESXI Host through SSH, hence
ssh -L 9999:MYVMHOSTNAME:22 -N MYESXIHOSTNAME
doesn't let me connect to the local 9999 port
however this works:
ssh -L 9999:MYESXIHOSTNAME(or localhost):443 -N MYESXIHOSTNAME // ESXI Web-Interface Example
Is there anything I miss, such as firewall stuff or even sshd_config changes to make the ESXI Host connect to other hosts at all?
Any help is apreciated, thank you.
PS.: My ESXI Host and all my VMs in it, are connected to the same "router", hence they are accessible through each hostname or specified ip-address.
(I have a Oracle Linux VM and I can use SSH-Tunneling just fine by connecting from the VM to my ESXI Host via SSH)
Did you ever figure this out? I am trying to solve the same problem. I'm hoping it's some settings in the /etc/ssh/sshd_config but if it is I haven't figured out what they are yet...
changing sshd_config something not recommended in production, SSH is only for trouble shooting, that is why you are getting the warning when enabled ssh on ESXi.