Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 17, 2021. It is now read-only.
/sshcodePublic archive

Run VS Code on any server over SSH.

License

NotificationsYou must be signed in to change notification settings

coder/sshcode

Repository files navigation

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

See the discussion in#185


"Open Issues""Latest Release"MIT licenseDiscordBuild Status

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

It uploads your extensions and settings automatically, so you can seamlessly useremote servers asVS Code hosts.

If you have Chrome installed, it opens the browser in app mode. That meansthere'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 withgo:

go get -u go.coder.com/sshcode

Or, grab apre-built binary.

OS Support

We currently support:

  • Linux
  • MacOS
  • WSL

For the remote server, we currently only support Linuxx86_64 (64-bit)servers withglibc.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 willrsync your local VS Code settings and extensionsto the remote server every time you connect.

This operation may take a while on a slow connections, but will be faston 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, youmust specify your settings directories through theVSCODE_CONFIG_DIR andVSCODE_EXTENSIONS_DIR environment variables.

The following will makesshcode 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 backwhen the connection closes. To synchronize back to local when the connection ends,pass the-b flag.

About

Run VS Code on any server over SSH.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors17


[8]ページ先頭

©2009-2025 Movatter.jp