2026-02-26 20:07:55 +09:00
2026-02-26 04:12:45 +09:00
2025-08-12 02:50:10 +09:00
2026-02-26 04:12:45 +09:00
2025-08-19 20:20:18 +09:00
2026-02-26 20:07:55 +09:00
2024-12-02 02:19:50 +09:00
2026-01-24 00:08:40 +09:00
2025-08-19 20:20:18 +09:00
2026-02-26 04:12:45 +09:00
2025-08-12 02:50:10 +09:00
2025-08-12 16:29:44 +09:00
2026-02-26 04:12:45 +09:00
2025-08-19 20:20:18 +09:00
2025-08-12 16:29:44 +09:00
2025-09-05 10:35:44 +09:00
2026-02-26 20:07:55 +09:00
2025-08-12 02:50:10 +09:00
2024-12-13 02:25:27 +09:00
2024-12-13 02:25:27 +09:00

pty and rpty access

  • ./hodu server --rpc-on=0.0.0.0:9999 --ctl-on=[::1]:8888 --pty-shell=/bin/bash
  • ./hodu client --rpc-to=127.0.0.1:9999 --ctl-on=[::1]:1107 --client-token=test-client --pty-shell=/bin/bash

On the server-side:

  • Access http://[::1]:8888/_rpty/xterm.html?client-token=test-client using a web browser to access a pty session of a remote client.
  • Access http://[::1]:8888/_pty/xterm.html using a web browser to access a local pty session.

On the client-side:

  • Access http://[::1]:1107/_pty/xterm.html using a web browser to access a local pty session.

port based proxy service

  • ./hodu server --rpc-on=0.0.0.0:9999 --ctl-on=0.0.0.0:8888 --pxy-on=0.0.0.0:9998 --wpx-on=0.0.0.0:9997 --rpx-on=0.0.0.0:9996
  • ./hodu client --rpc-to=127.0.0.1:9999 --ctl-on=127.0.0.1:1107 --client-token=tratra --rpx-target-addr=127.0.0.1:1212 "127.0.0.2:22,0.0.0.0:12345,ssh,Access SSH Server" "127.0.0.2:1212,0.0.0.0:12346,http,Http server"

RPX

  • On the client side
    • python -m http.server 1212
  • On the server side

WPX

  • On the client side
    • python -m http.server 1212
  • On the server side

Port forwarding to client

  • On the server side
    • ssh -p 12345 127.0.0.1
    • this should establish connection to 127.0.0.2:22 on the client side

SSH Terminal

  • On the server side
    • Access http://127.0.0.1:9998/_ssh/[server-id]/[conn-id]/xterm.html to have the terminal connecting to 127.0.0.2:22

server.json

{
    "server-addr": "127.0.0.1:9999",
    "peer-addrs": [
        "127.0.0.1:22",
        "127.0.0.1:80"
    ]
}

client control channel

Add a new route

clinet-route.json contains the following text:

{
    "id": 0,
    "client-peer-addr": "192.168.1.104:22",
    "client-peer-name": "Star gate",
    "server-peer-option": "tcp4 ssh",
    "server-peer-svc-addr": "0.0.0.0:0",
    "server-peer-svc-net": "",
    "lifetime": "0"
}

Run this command:

curl -X POST --data-binary @client-route.json http://127.0.0.1:1107/_ctl/client-conns/1/routes
Description
No description provided
Readme 6.2 MiB
Languages
Go 97%
HTML 2.4%
Makefile 0.6%