microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.61k stars 274 forks source link

Allow having one ssh config file per profile #9933

Open ahassaine opened 3 months ago

ahassaine commented 3 months ago

I have a different list of servers I need to connect to from my work vs personal profiles, I wish there were a way to allow me to switch between these two ssh configs: ~/.ssh/config.d/work ~/.ssh/config.d/personal I created work and personal profiles, but could not figure out a way to assign a different ssh config file for each profile. Is that possible at the moment? If not I think that would be a cool feature.

Thanks!

roblourens commented 3 months ago

There is a setting to point at your ssh config, remote.SSH.configFile, does that help?

ahassaine commented 3 months ago

There is indeed but, as per this screenshot, it applies to all profiles, hence my request image

roblourens commented 3 months ago

We would need a new setting scope for "user settings + profiles" to support this properly, the existing scopes don't quite work.