aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-14 23:43:09 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-14 23:43:09 +0200
commit2fd0c583436f6a38692a125b4f8eb2b2e9e9a046 (patch)
tree9788e660de0bfb629dd6fcda32607f5b1deb80d6
parent92d63efb7087b24910dee2e44f0fed51895e4fd9 (diff)
downloadrtty-2fd0c583436f6a38692a125b4f8eb2b2e9e9a046.tar.gz
Use -Pass option for sshpass
-rw-r--r--INTRO7
-rw-r--r--rtty.c2
2 files changed, 5 insertions, 4 deletions
diff --git a/INTRO b/INTRO
index db55883..788587c 100644
--- a/INTRO
+++ b/INTRO
@@ -25,6 +25,7 @@ flag, expecting a password to be set in the SSHPASS environment
variable.
If you often need to log into remote servers without public key
-authentication, consider compiling a special version of rtty -- I
-suggest the name rttyp -- and installing it alongside the normal
-version of rtty.
+authentication, or if you cannot use ssh-agent(1) to avoid entering
+your key's passphrase interactively, consider compiling a special
+version of rtty -- I suggest the name rttyp -- and installing it
+alongside the normal version of rtty.
diff --git a/rtty.c b/rtty.c
index cc5e38f..6088dc7 100644
--- a/rtty.c
+++ b/rtty.c
@@ -49,7 +49,7 @@ main(int argc, char *argv[])
offset = -1;
#ifdef SSHPASS
nargv[++offset] = "sshpass";
- nargv[++offset] = "-e";
+ nargv[++offset] = "-ePass";
#endif
nargv[++offset] = "ssh";
nargv[++offset] = "-tt";