[Gtk-sharp-list] Problem with SSH Process, I need to auth user!
Antonio Gutiérrez Mayoral
agutierr@gsyc.escet.urjc.es
Mon, 31 Jan 2005 00:32:14 +0100
It doesnt works :-( I have the same error:
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or
directory
I dont know what's happening... Thanks for help.
El dom, 30-01-2005 a las 15:22 -0200, Everaldo Canuto escribió:
> Hey,
>
> Try to use WriteLine() intead of Write().
>
> If dont work please check if this command are working on command line.
>
> Best regards,
> Everaldo.
>
>
>
>
> Em Dom, 2005-01-30 às 15:07 +0100, Antonio Gutiérrez Mayoral escreveu=
:
> > Hi All!
> >
> > I have a problem with my program. I am trying to auth user via ssh,
> > launching a System.Process. My sample code is:
> >
> > p = new Process();
> > p.StartInfo.FileName = "/usr/bin/ssh";
> > p.StartInfo.Arguments += "user@host";
> > p.StartInfo.RedirectStandardInput = true;
> > p.StartInfo.UseShellExecute = false;
> > p.StartInfo.CreateNoWindow = false;
> > p.Start();
> > p.StandardInput.Write("password");
> > p.WaitForExit();
> >
> > But, When process starts, I have those messages:
> >
> > ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or
> > directory
> > Permission denied, please try again.
> > ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or
> > directory
> > Permission denied, please try again.
> > ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or
> > directory
> > Permission denied (publickey,password,keyboard-interactive).
> >
> > What's wrong? All? Nohting? I'm newbie with C# and Mono. Please help!!
> >
> > Thanks all.
>
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
--
Antonio Gutiérrez Mayoral
Grupo de Sistemas y Comunicaciones <http://gsyc.info>
Universidad Rey Juan Carlos <http://www.urjc.es>