• This repository has been archived on 17/Jan/2021
  • Stars
    star
    5,741
  • Rank 6,745 (Top 0.2 %)
  • Language
    Go
  • License
    MIT License
  • Created about 5 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Run VS Code on any server over SSH.

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 [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"

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.

More Repositories

1

code-server

VS Code in the browser
TypeScript
65,191
star
2

coder

Provision remote development environments via Terraform
Go
6,912
star
3

deploy-code-server

Deploy code-server to the cloud with a few clicks ☁️ πŸ‘¨πŸΌβ€πŸ’»
Shell
834
star
4

sail

Deprecated: Instant, pre-configured VS Code development environments.
Go
630
star
5

slog

Minimal structured logging library for Go
Go
328
star
6

code-marketplace

Open source extension marketplace for VS Code.
Go
186
star
7

awesome-code-server

Projects, resources, and tutorials that take code-server to the next level
154
star
8

redjet

High-performance Redis library for Go
Go
137
star
9

awesome-coder

A curated list of awesome Coder resources.
113
star
10

nbin

Fast and robust node.js binary compiler.
TypeScript
106
star
11

enterprise-images

Example Docker images for use with Coder
Shell
88
star
12

envbuilder

Build development environments from a Dockerfile on Docker, Kubernetes, and OpenShift. Enable developers to modify their development environment quickly.
Go
83
star
13

coder-v1-cli

Command line for Coder v1. For Coder v2, go to https://github.com/coder/coder
72
star
14

cli

A minimal Go CLI package.
Go
48
star
15

enterprise-helm

Operate Coder v1 on Kubernetes
Go
44
star
16

vscode-coder

Open any Coder workspace in VS Code with a single click.
TypeScript
41
star
17

retry

A tiny retry package for Go.
Go
38
star
18

hat

HTTP API testing for Go
Go
36
star
19

wgtunnel

HTTP tunnels over Wireguard
Go
33
star
20

envbox

envbox is an image that enables creating non-privileged containers capable of running system-level software (e.g. dockerd, systemd, etc) in Kubernetes.
Go
27
star
21

node-browser

Use Node in the browser.
TypeScript
26
star
22

wsep

High performance command execution protocol
Go
24
star
23

terraform-provider-coder

Go
23
star
24

flog

Pretty formatted log for Go
Go
22
star
25

packages

Deploy Coder to your preferred cloud with a pre-built package.
HCL
22
star
26

backstage-plugins

Official Coder plugins for the Backstage platform
TypeScript
22
star
27

docs

Markdown content for Coder v1 Docs.
Shell
20
star
28

modules

A collection of Terraform Modules to work with Coder.
HCL
20
star
29

exectrace

Simple eBPF-based exec snooping on Linux packaged as a Go library.
Go
19
star
30

jetbrains-coder

A JetBrains Plugin for Coder Workspaces
Kotlin
17
star
31

code-server-aur

code-server AUR package
Shell
15
star
32

requirefs

Create a readable and requirable file system from tars, zips, or a custom provider.
TypeScript
11
star
33

labeler

A GitHub app that labels your issues for you
Go
10
star
34

cloud-agent

The agent for Coder Cloud
Go
10
star
35

ts-logger

TypeScript
10
star
36

coder.rs

[EXPERIMENTAL] Asynchronous Rust wrapper around the Coder Enterprise API
Rust
9
star
37

coder-logstream-kube

Stream Kubernetes Pod events to the Coder startup logs
Go
9
star
38

pretty

TTY styles for Go
Go
9
star
39

homebrew-coder

Coder Homebrew Tap
Ruby
8
star
40

bigdur

A Go package for parsing larger durations.
Go
8
star
41

timer

Accurately measure how long a command takes to run
Go
7
star
42

serpent

CLI framework for scale and configurability inspired by Cobra
Go
5
star
43

coder-doctor

A preflight check tool for Coder
Go
5
star
44

blogs

Content for coder.com/blog
D2
5
star
45

webinars

HCL
4
star
46

nfy

EXPERIMENTAL: Pumped up install scripts
Go
4
star
47

ghlabels

A tool to synchronize labels on GitHub repositories sanely.
Go
4
star
48

devcontainer-webinar

The Good, The Bad, And The Future of Dev Containers
Shell
4
star
49

envbuilder-starter-devcontainer

A sample project for getting started with devcontainer.json in envbuilder
Dockerfile
4
star
50

presskit

press kit and brand assets for Coder.com
3
star
51

gke-disk-cleanup

Go
3
star
52

cla

The Coder Contributor License Agreement (CLA)
3
star
53

styleguide

2
star
54

codercord

A Discord bot for our community server
Dart
2
star
55

support-scripts

Things for Coder Customer Success.
Shell
2
star
56

enterprise-terraform

Terraform modules and examples for deploying Coder
HCL
2
star
57

sail-aur

sail AUR package
Shell
2
star
58

grip

extensible logging and messaging framework for go processes.
Go
1
star
59

coder-xray

JFrog XRay Integration
Go
1
star
60

presentations

Talks and presentations related to Coder released under CC0 which permits remixing and reuse!
1
star
61

.github

1
star
62

community-templates

Unofficial templates for Coder for various platforms and cloud providers
HCL
1
star
63

coder-docs-generator

Generates off-line docs for Coder Docs
TypeScript
1
star
64

gott

go test timer
Go
1
star
65

wxnm

A library for providing TypeScript typed communication between your web extension and your native Node application using Native Messaging
TypeScript
1
star
66

jetbrains-backend-coder

Kotlin
1
star