The tssh --udp
works like mosh
, and the tsshd
works like mosh-server
.
-
Low latency ( based on kcp )
-
Port forwarding ( same as ssh )
-
Install tssh on the client ( the user's machine ).
-
Install tsshd on the server ( the remote host ).
-
Use
tssh --udp xxx
to login to the server. Configure as follows to omit--udp
:Host xxx #!! UdpMode yes #!! TsshdPath ~/go/bin/tsshd
The tssh
plays the role of ssh
on the client side, and the tsshd
plays the role of sshd
on the server side.
The tssh
will first login to the server normally as an ssh client, and then run a new tsshd
process on the server.
The tsshd
process listens on a random udp port between 61000 and 62000, and sends its port number and a secret key back to the tssh
process over the ssh channel. The ssh connection is then shut down, and the tssh
process communicates with the tsshd
process over udp.
-
Install with Go ( Requires go 1.20 or later )
go install github.com/trzsz/tsshd/cmd/tsshd@latest
go install github.com/trzsz/tsshd/cmd/tsshd@latest
The binaries are usually located in ~/go/bin/ ( C:\Users\your_name\go\bin\ on Windows ).
-
Build from source ( Requires go 1.20 or later )
sudo make install
git clone --depth 1 https://github.com/trzsz/tsshd.git cd tsshd make sudo make install
-
Download from the GitHub Releases, unzip and add to
PATH
environment.
Feel free to email the author lonnywong@qq.com, or create an issue. Welcome to join the QQ group: 318578930.
❤️ Sponsor trzsz ❤️, buy the author a drink 🍺 ? Thank you for your support!