sshcode
is a CLI to automatically install and run code-server over SSH.
Chrome is recommended.
Install with go
:
go get go.coder.com/sshcode
Or, grab a pre-built binary.
sshcode [email protected]
# Starts code-server on dev.kwc.io and opens in a new browser window.
You can specify a remote directory as the second argument:
sshcode [email protected] ~/projects/sourcegraph
By default, sshcode
will rsync
your local VS Code settings and extensions
to the remote server every time you connect.
This operation may take a while on a slow connections, but will be fast on follow-on connections to the same server.
To disable this feature entirely, pass the --skipsync
flag.