From 1d764bd32582e48082e1a2ed07f079ddc17fdf8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 14 Jul 2021 18:38:57 +0200 Subject: rd: Start ssh in batch mode, exec into rtty --- rd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rd') diff --git a/rd b/rd index 9dc0123..601b5d1 100755 --- a/rd +++ b/rd @@ -1,7 +1,11 @@ #!/bin/sh +# rd -- launch ssh session for rtty + in=/var/tmp/r.in out=/var/tmp/r.out rm $in $out 2>/dev/null mkfifo $in $out -<$in 2>&1 >$out ssh -tt "$@" + +<$in 2>&1 >$out ssh -oBatchMode=yes -tt "$@" & +exec rtty -- cgit v1.2.3