Skip to content

alphaKAI/vsc_ssh_opener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vsc-ssh-opener

Using vsc-ssh-opener, you can code . in SSH!

Usage

  1. Build server binary in Local

    Clone this repository and run as follows to build the server binary at root of the repository:

    $ cargo build --release
  2. Set up the config file in Local

    Here is the path to the config file:

    • in Linux /home/your-user/.config/code-open-server/table.json
    • in Windows C:\Users\your-user\AppData\Roaming\code-open-server\table.json

    Write the mapping from the hostname to name in .ssh/config to table.json. For example:

    {
        "hostname": "ssh-host"
    }
    
  3. Run code-open-server in Local

    Run the following in the repository root:

    $ ./target/release/code-open-server
  4. SSH with port forwarding

    $ ssh -R 3000:localhost:3000 ssh-host
  5. Build and Install client binary in Remote

    $ cargo install --git https://github.com/alphaKAI/vsc_ssh_opener code-open

Now, you can open the local VSCode by running the following somewhere remotely!:

$ code-open .

About

You can `code .` in SSH!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages