I'd like to edit code on a remote machine. The VSCode SSH extension offers this feature, but I can only get it to work for a single hop. Here's what I've tried so far:
- Click on 'Remote Explorer' in VSCode sidebar
- Click
+for 'Add Target' - Enter the multiple-hop ssh command:
ssh -A userA@hostA ssh userB@hostB - Select
~/.ssh/configas the SSH config file to update - When I do this, only the information from the first SSH hop is entered into the
configfile:
Host hostA
HostName hostA
ForwardAgent yes
User userA
How can I get VSCode to correctly establish a multiple-hop ssh connection?