Skip to content

A tool to gain SSH to App Engine 2nd Generation Instances, via reverse shell style SSH over an outbound WebSocket connection

License

Notifications You must be signed in to change notification settings

affordablemobiles/go-reverse-ssh-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reverse Connecting SSH (via relay) over WebSocket

This app allows inbound SSH into a target, when only outbound connectivity is allowed from the target (reverse shell style).

The SSH server is implemented in the Go endpoint itself, but it could just as easily be modified to redirect to the system SSH service instead.

The outbound connection from the target is made over HTTPS, utilising WebSockets for two way communication.

About

The "endpoint" connects outbound to the "relay" via a secure WebSocket.

The "relay" starts a local listening socket and forwards connections to it back to the remote "endpoint".

The "endpoint" in turn has an SSH server that accepts those connections and provides a shell & exec functionality.

Use Case

This was developed to allow us SSH access into App Engine Standard Environment (2nd generation) runtime instances on GCP, for file sync and debugging in a development / pre-production environment.

About

A tool to gain SSH to App Engine 2nd Generation Instances, via reverse shell style SSH over an outbound WebSocket connection

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published