trzsz / tsshd

The tsshd works like mosh-server, while the "tssh --udp" works like mosh. Supports ssh port forwarding, ssh agent forwarding and X11 forwarding.
MIT License
59 stars 3 forks source link

[help wanted] do i have to install tsshd on my jump server #5

Open isvicy opened 4 days ago

isvicy commented 4 days ago

thank you for the great work, i am very willing to try out tssh in my workflow, but i need some help. i have to use a jump server to access the dev server i use. i want to know, if i have to install tsshd and tssh on the jump server to use the udp mode as mosh.

and the tsshd and tss binary is built and install to a dir in my home directory, it could not be directly found in the login shell, so i need to specify the binary location in ssh config, how? btw, i also need to dynamic forward feature. here is an example ssh config i use:

Host jp-dev
    HostName hostname
    Port 3200
    User user 
    ProxyJump t-nix
    DynamicForward 1080
    GatewayPorts yes
    LogLevel QUIET
lonnywong commented 4 days ago

Yes, you have to install tsshd and tssh on the jump server. Assuming you installed them in /home/you/bin/tssh and /home/you/bin/tsshd.

UDP mode is hard to work with ProxyJump and DynamicForward. You have to login to the jump server first, then use the Automated Interaction feature to login to target server.

Host jp-dev
    #!! UdpMode yes
    #!! TsshdPath /home/you/bin/tsshd
    HostName t-nix
    LocalForward 1080 127.0.0.1:1080
    #!! ExpectCount 1
    #!! ExpectPattern1 $
    #!! ExpectSendText1 /home/you/bin/tssh --udp --tsshd-path /home/you/bin/tsshd -p 3200 -D 1080 user@hostname