sshcode

通过 SSH 在任何服务器上运行 VS Code。「Run VS Code on any server over SSH.」

Github星跟蹤圖

sshcode

This project has been deprecated in favour of the code-server install script

See the discussion in #185


"Open Issues"
"Latest Release"
MIT license
Discord
Build Status

sshcode is a CLI to automatically install and run code-server over SSH.

It uploads your extensions and settings automatically, so you can seamlessly use
remote servers as VS Code hosts.

If you have Chrome installed, it opens the browser in app mode. That means
there's no keybind conflicts, address bar, or indication that you're coding within a browser.
It feels just like native VS Code.

Demo

Install

Have Chrome installed for the best experience.

Install with go:

go get -u go.coder.com/sshcode

Or, grab a pre-built binary.

OS Support

We currently support:

  • Linux
  • MacOS
  • WSL

For the remote server, we currently only support Linux x86_64 (64-bit)
servers with glibc. musl libc (which is most notably used by Alpine Linux)
is currently not supported on the remote server:
#122.

Usage

sshcode kyle@dev.kwc.io
# 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 kyle@dev.kwc.io "~/projects/sourcegraph"

Extensions & Settings Sync

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-up connections to the same server.

To disable this feature entirely, pass the --skipsync flag.

Custom settings directories

If you're using an alternate release of VS Code such as VS Code Insiders, you
must specify your settings directories through the VSCODE_CONFIG_DIR and
VSCODE_EXTENSIONS_DIR environment variables.

The following will make sshcode work with VS Code Insiders:

MacOS

export VSCODE_CONFIG_DIR="$HOME/Library/Application Support/Code - Insiders/User"
export VSCODE_EXTENSIONS_DIR="$HOME/.vscode-insiders/extensions"

Linux

export VSCODE_CONFIG_DIR="$HOME/.config/Code - Insiders/User"
export VSCODE_EXTENSIONS_DIR="$HOME/.vscode-insiders/extensions"

Sync-back

By default, VS Code changes on the remote server won't be synced back
when the connection closes. To synchronize back to local when the connection ends,
pass the -b flag.

主要指標

概覽
名稱與所有者coder/sshcode
主編程語言Go
編程語言Dockerfile (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2019-04-18 19:09:26
推送於2020-08-10 18:36:45
最后一次提交2020-08-10 14:34:05
發布數10
最新版本名稱v0.10.0 (發布於 )
第一版名稱v0.1.0 (發布於 2019-04-19 20:11:31)
用户参与
星數5.7k
關注者數81
派生數216
提交數119
已啟用問題?
問題數123
打開的問題數44
拉請求數48
打開的拉請求數0
關閉的拉請求數17
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?