coder / sshcode

Run VS Code on any server over SSH.
MIT License
5.74k stars 216 forks source link

Add ability to upload local binary #136

Closed deansheather closed 5 years ago

deansheather commented 5 years ago

Adds --code-server-path flag that accepts a path to a file on the local machine. It will be uploaded to the code-server path on the remote server instead of the download script being executed.

There is no verification of the local binary, so a user could upload something that isn't a code-server binary or a custom binary or something else along those lines.

This allows remote servers with no internet access to have a code-server binary uploaded to them, which is useful for extremely secure environments.

Closes #73.

deansheather commented 5 years ago

Just tested this with code-server v2 preview 9, and it just works.

ammario commented 5 years ago

How about --upload-code-server

deansheather commented 5 years ago

The flag is now --upload-code-server.