Add VS Code Remote SSH integration
This commit is contained in:
@@ -56,6 +56,8 @@ dosh status HOST # show remote tmux sessions and Dosh service status
|
||||
dosh restart HOST # restart dosh-server and show service status
|
||||
dosh doctor HOST # check config and connectivity
|
||||
dosh recover HOST # clear cached attach state and re-check
|
||||
dosh proxy-stdio HOST 127.0.0.1 22
|
||||
dosh vscode HOST [PATH] # configure/open VS Code Remote-SSH through Dosh
|
||||
```
|
||||
|
||||
Examples:
|
||||
@@ -72,11 +74,34 @@ dosh cat server:tmp/file.txt
|
||||
dosh forward server -L 8080:127.0.0.1:80
|
||||
dosh forward server -D 1080
|
||||
dosh forward server -R 2222:127.0.0.1:22
|
||||
dosh proxy-stdio server 127.0.0.1 22
|
||||
dosh vscode server /home/me/project
|
||||
```
|
||||
|
||||
Agent forwarding is opt-in with `-A` and must be enabled on the server.
|
||||
File copy is enabled by `allow_file_transfer = true` on the server.
|
||||
|
||||
## VS Code
|
||||
|
||||
Dosh can carry VS Code Remote-SSH without replacing VS Code's SSH workflow.
|
||||
|
||||
```sh
|
||||
dosh vscode setup server
|
||||
dosh vscode server /home/me/project
|
||||
```
|
||||
|
||||
This writes a managed SSH config entry using:
|
||||
|
||||
```sshconfig
|
||||
ProxyCommand dosh proxy-stdio server %h %p
|
||||
```
|
||||
|
||||
VS Code still uses Remote-SSH and the normal remote VS Code Server. Dosh carries
|
||||
the SSH byte stream over its encrypted reconnecting transport.
|
||||
|
||||
The optional extension in `vscode-extension/` provides the same setup from the
|
||||
Command Palette.
|
||||
|
||||
## Library
|
||||
|
||||
Dosh can also be used as a Rust transport for application protocols that need
|
||||
|
||||
Reference in New Issue
Block a user