[Gtk-sharp-list] Problem with SSH Process, I need to auth user!

Brad Taylor brad@getcoded.net
Sun, 30 Jan 2005 18:02:16 -0800


--=-ySvxz5H6sigw/qmTQdTc
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

> It doesnt works :-( I have the same error:=20
>=20
>         ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or
>         directory
>        =20
> I dont know what's happening... Thanks for help.

Just a guess, but it sounds that ssh isn't able to find ssh-askpass,
meaning that your $PATH variable isn't being set correctly.
 =20
> > >         p =3D new Process();	=09
> > >         p.StartInfo.FileName =3D "/usr/bin/ssh";
> > >         p.StartInfo.Arguments +=3D "user@host";
> > >         p.StartInfo.RedirectStandardInput =3D true;
> > >         p.StartInfo.UseShellExecute =3D false;

If you set UseShellExecute to true, Bash (or whatever shell you use)
should set up $PATH correctly.

> > >         p.StartInfo.CreateNoWindow =3D false;=09
> > >         p.Start();
> > >         p.StandardInput.Write("password");
> > >         p.WaitForExit();=09

Again, just a guess, but its worth a try.

-Brad

--=20
Brad Taylor
Genome Software LLC
http://www.getcoded.net

--=-ySvxz5H6sigw/qmTQdTc
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBB/ZGnWZT8MXyJ2AURApWPAKCGfwOkDnp51bh0nTOhcVIdLGX/mwCaA6jP
4imrRKqj1Fbk8BcMhgpeePE=
=KWSz
-----END PGP SIGNATURE-----

--=-ySvxz5H6sigw/qmTQdTc--