You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-2
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ Debugging using ssh automatically converts all paths between client & server and
122
122
redirects X11 output from the server to the client.
123
123
Simply add a `ssh` object in your `launch` request.
124
124
125
-
```
125
+
```jsonc
126
126
"request":"launch",
127
127
"target":"./executable",
128
128
"cwd":"${workspaceRoot}",
@@ -137,7 +137,11 @@ Simply add a `ssh` object in your `launch` request.
137
137
// x11port may also be specified as string containing only numbers (useful to use configuration variables)
138
138
"x11port":6000,
139
139
// Optional, content will be executed on the SSH host before the debugger call.
140
-
"bootstrap": "source /home/remoteUser/some-env"
140
+
"bootstrap":"source /home/remoteUser/some-env",
141
+
// Optional, override the default transport layer algorithms used for the connection
142
+
"algorithms": {
143
+
"kex": [ "diffie-hellman-group-exchange-sha1" ]
144
+
}
141
145
}
142
146
```
143
147
@@ -151,6 +155,9 @@ For X11 forwarding to work you first need to enable it in your Display Manager a
151
155
connections. To allow connections you can either add an entry for applications or run `xhost +`
152
156
in the console while you are debugging and turn it off again when you are done using `xhost -`.
153
157
158
+
159
+
SSH algorithms used by some old embedded devices may be out of date, there is a compatible method using `algorithms`. `kex`, `cipher`,`compress`, `hmac`, `serverHostKey` are known to be supported in algorithms. The data format of these keys is array. Supported values can be found in [`msc/ssh`](https://github.com/mscdex/ssh2/blob/master/README.md#client-methods) (Client methods->connect->algorithms).
160
+
154
161
Because some builds requires one or more environment files to be sourced before running any
155
162
command, you can use the `ssh.bootstrap` option to add some extra commands which will be prepended
0 commit comments