gui wrapper for ssh -X
Jim Knoble
jmknoble at pobox.com
Sat Mar 8 04:12:38 EST 2003
Circa 2003-03-07 14:39:11 +0000 dixit David Woodhouse:
: On Fri, 2003-03-07 at 14:12, Jeremy Wilkins wrote:
: > I'm trying to launch ssh and connect to it with pipes so that my front
: > end can enter the password if required (either from a cache or by
: > popping up a dialogue box).
Pipes won't work; ssh reads the password or passphrase directly from
/dev/tty (the current terminal), unless stdin is not a terminal.
: Why not just use $SSH_ASKPASS?
:
: Admittedly, there's some brain damage there and you have to explicitly
: disconnect from your controlling tty to force it to use your askpass
: program, rather than just passing a '-oaskpass=...' option, but it's not
: so hard.
It's *really* not hard:
env SSH_ASKPASS=/usr/local/libexec/x11-ssh-askpass \
ssh -X user at machine 'command' </dev/null >/dev/null 2>&1
x11-ssh-askpass is here, in case you don't already have it:
http://www.pobox.com/~jmknoble/software/x11-ssh-askpass/
--
jim knoble | jmknoble at pobox.com | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
Stop the War on Freedom ... Start the War on Poverty!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 256 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20030307/5e37bf72/attachment.bin
More information about the openssh-unix-dev
mailing list