https://github.com/ysmood/dehub
A lightweight debugging tool for remote process.
https://github.com/ysmood/dehub
debugging ssh tunneling
Last synced: 7 months ago
JSON representation
A lightweight debugging tool for remote process.
- Host: GitHub
- URL: https://github.com/ysmood/dehub
- Owner: ysmood
- License: mit
- Created: 2019-12-10T10:17:14.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-20T18:11:56.000Z (over 1 year ago)
- Last Synced: 2025-05-12T13:56:16.282Z (8 months ago)
- Topics: debugging, ssh, tunneling
- Language: Go
- Homepage: https://pkg.go.dev/github.com/ysmood/dehub/lib
- Size: 68.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Overview
A lightweight and secure debugging lib for remote process.
Especially useful for debugging a service that you can deploy code to but you don't have direct access to,
such as as k8s pod, github workflow, etc.
Features:
- Execute and attach to random CLI command on remote machine.
- Forward socks5 proxy on remote.
- Mount a remote directory to local with NFS.
- Uses the `golang.org/x/crypt/ssh` to establish secure connections.
- Hub server can be an endpoint of a http server.
- Servant can run behind a firewall.
```mermaid
flowchart LR
M[Master Client]
S[Servant Client]
subgraph Cluster
H1[Hub Server 01]
H2[Hub Server 02]
end
S ---> H2
M --> H1
H1 -- relay --> H2
```
Because Master and Servant uses public key to communicate, the Hub server can be a untrusted server.