aboutsummaryrefslogtreecommitdiff
path: root/rtty.1
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-15 00:42:55 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-15 00:45:09 +0200
commit3726eebdf7b5fb37e9bb18609778a903c783c3ef (patch)
tree4a20271f94a827deeb3db1bf6a0c025e8bf5fec6 /rtty.1
parent2fd0c583436f6a38692a125b4f8eb2b2e9e9a046 (diff)
downloadrtty-3726eebdf7b5fb37e9bb18609778a903c783c3ef.tar.gz
Add -P option (ask for password)
Diffstat (limited to 'rtty.1')
-rw-r--r--rtty.124
1 files changed, 17 insertions, 7 deletions
diff --git a/rtty.1 b/rtty.1
index 21c2dd4..7f91f29 100644
--- a/rtty.1
+++ b/rtty.1
@@ -6,6 +6,7 @@
.Nd limited but responsive remote shell
.Sh SYNOPSIS
.Nm
+.Op Fl P
.Op Ar ...
.Sh DESCRIPTION
.Pp
@@ -22,7 +23,22 @@ uses the default line-editing capabilities of the terminal,
user input is only sent to the remote server
once a full line has been input.
.Pp
-All arguments are passed to
+If the
+.Fl P
+flag is provided,
+.Nm
+will manually ask the user for a password and run
+.Xr ssh 1
+using
+.Xr sshpass 1 .
+Otherwise,
+.Xr ssh 1
+is launched in batch mode,
+without the possibility of interactive password entry.
+.Pp
+All arguments except
+.Fl P
+are passed to
.Xr ssh 1 .
.Sh AUTHORS
.Pp
@@ -32,12 +48,6 @@ is written by John Ankarström
.Sh BUGS
.Pp
.Nm
-does not support interactive password input;
-it is recommended that public key authentication be used,
-in combination with
-.Xr ssh-agent 1 .
-.Pp
-.Nm
exits immediately on SIGINT;
it is best used in conjunction with
.Xr dtach 1