Reputation: 65
I am trying to change the VS Code server folder install location. The functionality was recently implemented and I've found the following references [1], [2]. However, I have not been able to implement it myself and in trying I get the following error message:
C:\\Users\\username/.ssh/config: line 1: Bad configuration option: remote.ssh.serverinstallpath
C:\\Users\\username/.ssh/config: terminating, 1 bad configuration options
The config file is constructed in the following way
"remote.SSH.serverInstallPath": {"hostname": "/test/location"}
Host hostname
HostName hostname
User username
NOTE: I have obscured the connection as 'hostname' and the user as 'username'
Upvotes: 5
Views: 11784
Reputation: 793
This config is for vscode's settings.json
file (not .ssh/config
):
e.g on Windows, do Ctrl+Shift+P > "Preferences: Open User Settings (JSON)". Then, you can add the following lines at the end.
"remote.SSH.serverInstallPath": {
"<host>": "/test/location"
}
Alternative, if you want do it via settings UI:
@ext:ms-vscode-remote.remote-ssh install
<host>
/test/location
Upvotes: 10