You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,11 @@ tssh and tsshd works exactly like ssh, there are no plans to support local echo
39
39
40
40
2. Install [tsshd](https://github.com/trzsz/tsshd?tab=readme-ov-file#installation) on the server ( the remote host ).
41
41
42
-
3. Use `tssh --udp xxx` to login to the server. Or configure as follows in `~/.ssh/config` to omit `--udp`:
42
+
3. Use `tssh --udp xxx` to log in (latency-sensitive users can specify `--kcp` option). Or configure as follows in `~/.ssh/config` to omit `--udp` or `--kcp` option:
43
43
44
44
```
45
45
Host xxx
46
-
#!! UdpMode yes
46
+
#!! UdpMode Yes/QUIC/KCP
47
47
```
48
48
49
49
### How it works
@@ -52,7 +52,7 @@ tssh and tsshd works exactly like ssh, there are no plans to support local echo
52
52
53
53
- The `tssh` will first login to the server normally as an ssh client, and then run a new `tsshd` process on the server.
54
54
55
-
- The `tsshd` process listens on a random udp port between 61001 and 61999 (can be customized by `UdpPort`), and sends its port number and some secret keys 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.
55
+
- The `tsshd` process listens on a random udp port between 61001 and 61999 (can be customized by `TsshdPort`), and sends its port number and some secret keys 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.
56
56
57
57
### Reconnection
58
58
@@ -99,7 +99,7 @@ tssh and tsshd works exactly like ssh, there are no plans to support local echo
99
99
```
100
100
Host xxx
101
101
#!! UdpMode Yes
102
-
#!! UdpPort 61001-61999
102
+
#!! TsshdPort 61001-61999
103
103
#!! TsshdPath ~/go/bin/tsshd
104
104
#!! UdpAliveTimeout 86400
105
105
#!! UdpHeartbeatTimeout 3
@@ -111,9 +111,9 @@ Host xxx
111
111
112
112
-`UdpMode`: `No` (the default: tssh works in TCP mode), `Yes` (default protocol: `QUIC`), `QUIC` ([QUIC](https://github.com/quic-go/quic-go) protocol: faster speed), `KCP` ([KCP](https://github.com/xtaci/kcp-go) protocol: lower latency).
113
113
114
-
-`UdpPort`: Specifies the range of UDP ports that tsshd listens on, the default value is [61001, 61999].
114
+
-`TsshdPort`: Specifies the port range that tsshd listens on, default is [61001, 61999]. You can specify multiple discrete ports (e.g., `6022,7022`) or multiple discrete ranges (e.g., `8010-8020,9020-9030,10080`); tsshd will randomly choose an available port. You can also specify the port on the command line using `--tsshd-port`.
115
115
116
-
-`TsshdPath`: Specifies the path to the tsshd binary on the server, lookup in $PATH if not configured.
116
+
-`TsshdPath`: Specifies the path to the tsshd binary on the server, lookup in $PATH if not configured. You can also specify the path on the command line using `--tsshd-path`.
117
117
118
118
-`UdpAliveTimeout`: If the disconnection lasts longer than `UdpAliveTimeout` in seconds, tssh and tsshd will both exit, and no longer support reconnection. The default is 86400 seconds.
0 commit comments