summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2023-01-09 14:53:41 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2023-01-09 14:53:41 +0000
commit3bbff3ee20de3f6ccbfd543a311ecb24f2eb8729 (patch)
tree58289489898a78d406ff963df97ee82dd72c8750
parent24fa514abe616a5c55f8f20d48a268a805c2ec2f (diff)
ssh(1): fix usage and document -X flag
-rw-r--r--sys/man/1/ssh22
-rw-r--r--sys/src/cmd/ssh.c2
2 files changed, 15 insertions, 9 deletions
diff --git a/sys/man/1/ssh b/sys/man/1/ssh
index 6ab146c5d..9eb7a8366 100644
--- a/sys/man/1/ssh
+++ b/sys/man/1/ssh
@@ -4,11 +4,7 @@ ssh - secure shell remote login client
.SH SYNOPSIS
.B ssh
[
-.B -d
-] [
-.B -R
-] [
-.B -r
+.B -drRX
] [
.B -t
.I thumbfile
@@ -80,11 +76,11 @@ a terminal emulator like
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 @@ programs, see
.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
diff --git a/sys/src/cmd/ssh.c b/sys/src/cmd/ssh.c
index c7f57ec81..145233fea 100644
--- a/sys/src/cmd/ssh.c
+++ b/sys/src/cmd/ssh.c
@@ -1171,7 +1171,7 @@ kfmt(Fmt *f)
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");
}