From 2fd0c583436f6a38692a125b4f8eb2b2e9e9a046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 14 Jul 2021 23:43:09 +0200 Subject: Use -Pass option for sshpass --- INTRO | 7 ++++--- rtty.c | 2 +- 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"; -- cgit v1.2.3