[Gtk-sharp-list] Problem with SSH Process, I need to auth user!
Antonio Gutiérrez Mayoral
agutierr@gsyc.escet.urjc.es
Sun, 30 Jan 2005 15:07:47 +0100
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.
--
Antonio Gutiérrez Mayoral
Grupo de Sistemas y Comunicaciones <http://gsyc.info>
Universidad Rey Juan Carlos <http://www.urjc.es>