I can successfully connect from my macbook+VPN to my corporative cloud server through ssh with this command (passwordless, using my id_ed25519 key):
ssh login@ip@gateway -A
But I need to connect to this server inside VSCode. I created server's config like this:
Host servername
HostName ip
User login
ForwardAgent yes
ProxyJump gateway
and it does not work, I'm sure doing smth wrong. After I pressing "connect", VSCode requires "Please enter server host name".
The way from ChatGPT:
Host servername
HostName ip
User login
HostKeyAlias servername
ProxyCommand ssh -W %h:%p login@gateway -A
ForwardAgent yes
How should I create ssh-config to repeat my successful connection string ?
Note:
ip is smth like "123.123.222.3".
gateway is smth like "v00gateway01.corp.company.com"