Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code ssh; server install path

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'

like image 330
Volumunox Avatar asked Jul 20 '26 07:07

Volumunox


1 Answers

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:

  1. File > Preferences > Settings
  2. Filter: @ext:ms-vscode-remote.remote-ssh install
  3. Under "Server Install Path" > Add Item
    • Item = <host>
    • Value = /test/location
like image 122
shreyansp Avatar answered Jul 23 '26 20:07

shreyansp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!