Skip to content

ibice/go-rsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote shell over gRPC

Like ssh or kubectl exec, but over gRPC.

This library contains code to run remote commands using the gRPC framework. Apart from the library, client and server CLIs are included.

Features:

  • Execute shell commands or spawn an interactive shell on the server.
  • Interactive PTY sessions are used to run the commands.
  • Client is able to exit using the exit code of the remote command.

Usage

You'll need to have go > 1.18 installed.

  1. Create the server

    go run ./cmd/server
  2. Run the client

    # Spawn interactive shell
    go run ./cmd/client
    
    # Run command
    go run ./cmd/client -- ping 1.1.1.1 -c 3

Server and client use 127.0.0.1:22222 for the connections by default.

Building

To compile server and client binaries, run:

make

About

Remote shell over gRPC implemented in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published