code: plan9front

Download patch

ref: 3bbff3ee20de3f6ccbfd543a311ecb24f2eb8729
parent: 24fa514abe616a5c55f8f20d48a268a805c2ec2f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jan 9 09:53:41 EST 2023

ssh(1): fix usage and document -X flag

--- a/sys/man/1/ssh
+++ b/sys/man/1/ssh
@@ -4,12 +4,8 @@
 .SH SYNOPSIS
 .B ssh 
 [
-.B -d
+.B -drRX
 ] [
-.B -R
-] [
-.B -r
-] [
 .B -t
 .I thumbfile
 ] [
@@ -80,11 +76,11 @@
 a pseudo terminal will be requested for the shell.
 This can be disabled with the
 .B -R
-option.
+flag.
 A pseudo-terminal can be requested in all cases
 with the
 .B -r
-option.
+flag.
 .PP
 With the
 .B -W
@@ -98,7 +94,17 @@
 .PP
 The
 .B -d
-option enables debug output.
+flag enables debug output.
+.PP
+The
+.B -X
+flag enables mux mode, which after establishing
+the tunnel, relies the raw SSH protocol
+messages on file-descriptor 0 and 1.
+This is used by programs such as
+.IR sshnet (4)
+and
+.IR sshfs (4).
 .SH FILES
 .TF $home/lib/sshthumbs
 .TP
--- a/sys/src/cmd/ssh.c
+++ b/sys/src/cmd/ssh.c
@@ -1171,7 +1171,7 @@
 void
 usage(void)
 {
-	fprint(2, "usage: %s [-dR] [-t thumbfile] [-T tries] [-u user] [-h] [user@]host [-W remote!port] [cmd args...]\n", argv0);
+	fprint(2, "usage: %s [-drRX] [-t thumbfile] [-T tries] [-u user] [-h] [user@]host [-W remote!port] [cmd args...]\n", argv0);
 	exits("usage");
 }