Operating System - Linux
1755018 Members
3461 Online
108828 Solutions
New Discussion

ssh password + windows platform

 
ManojKumar
Advisor

ssh password + windows platform

Hi all,

I think yesterday i was not clear-

Query is ::
1)I am working on .net platform (C#).
2)I am supposed to execute one ssh command .
3)The command is : ssh -T root@ .
4)After execution of the above command , it is asking for a password .
5)Through my program, i am not able to provide the password .
6)I don't want to use public key authentication,expect scripts,cygwin etc .

Need to know whether it is possible to provide the password without using these utilities .

regards,
manoj
1 REPLY 1
PeterWolfe
Respected Contributor

Re: ssh password + windows platform

You were quite clear yesterday.

The simplest approach, as a previous post
noted, is to use public key authentication.
Out of curiosity, what is your objection
to that approach?

If your windows ssh client is similar to the
unix implementation, it's intentionally
disallowing IO redirection for reading
the password (thus necessitating the
awkward expect approaches, etc).
I don't know the windows equivalent
of these workarounds.