Hi, I've been attempting to write a gui wrapper to launch ssh -X user at machine application 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). I've been having problems with pipes though reading from ssh's stdout, for when it asks for the password. Before I go further down this path, does ssh uses pipes in the standard way, or is this method impossible. Does anyone have a suggestion of another way to go about this, currently I'm trying to use the g_spawn_async_with_pipes call from glib2.0 thanks jeb
On Fri, 2003-03-07 at 14:12, Jeremy Wilkins wrote:> Hi, > > I've been attempting to write a gui wrapper to launch > > ssh -X user at machine application > > 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).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. -- dwmw2
Look in contrib subdir: - in README: check for "X11 SSH Askpass" or use - gnome-ssh-askpass{1|2}.c Jeremy Wilkins wrote:> Hi, > > I've been attempting to write a gui wrapper to launch > > ssh -X user at machine application > > 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). > > <SNIP>
Ah. Well, I do have yes, but perhaps the path is wrong? On Sat, 8 Mar 2003, Darren Tucker wrote:> Hisashi T Fujinaka wrote: > > Here are the errors I get running the regressions on a Solaris 2.6 box. > [snip] > > yes: Command not found. > > yes|head returns 0 lines instead of 2000 > > You need a copy of the "yes" program on your test host. You can get one > from the GNU sh-utils package. > >-- Hisashi T Fujinaka - htodd at twofifty.com BSEE (6/86) + BSChem (3/95) + BAEnglish (8/95) + $2.50 = mocha latte
---------- Original Message ---------- Message: 7 Date: Fri, 07 Mar 2003 14:12:54 +0000 From: Jeremy Wilkins <jeb at jeremywilkins.freeserve.co.uk> To: openssh-unix-dev at mindrot.org Subject: gui wrapper for ssh -X Hi, I've been attempting to write a gui wrapper to launch ssh -X user at machine application 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). I've been having problems with pipes though reading from ssh's stdout, for when it asks for the password. Before I go further down this path, does ssh uses pipes in the standard way, or is this method impossible. Does anyone have a suggestion of another way to go about this, currently I'm trying to use the g_spawn_async_with_pipes call from glib2.0 thanks jeb -------------------------------------------------- If you are happy to use Python, you could take a look at Pyssh (http://pyssh.sourceforge.net). You can then create a gui with any gui toolkit supported by Python. Cheers, Rasjid.