We have to specify that client what is our hosts, where to jump from etc. The reason we need to configure the jump host this way is because VS Code, practically so, delegates the connection responsibilities to the underlying ssh client. Feel free to continue reading for further insights and discussion. It should first connect to the jump host and from there reach the remote host you desire. Now in VS Code, using the remote SSH extension, you just need to say ssh remote-host (no need for the full domain name either since we specified it). I’d strongly recommend you setup your SSH keys from your local machine -> jump-host and jump-host -> remote-host so VS Code does not have to deal with passwords when trying to connect.If you are on Windows, you might need to replace ssh inside the Prox圜ommand with ssh.exe depending on which is available in your shell.# as the jump-host would see it since we will be connecting # Now we will specify the actual remote host with # we just tell what the host name is for now. # Specify our intermediate jump host, nothing fancy here ![]() # active if there is no activity to avoid unwanted disconnects # We will set a 1 minute keep alive to keep the connection
0 Comments
Leave a Reply. |