G
Guest
Hi,
I need to sftp a file from my ASP.NET application to a unix server. I tried
to run the sftp2 from command line...
Process myprocess=new Process();
myprocess.StartInfo.FileName="sftp2";
myprocess.StartInfo.Arguments="-W <password file> -B <batch file>
<user>@<host_name>"
myprocess.StartInfo.WindoStyle=ProcessWindowStyle.Normal;
myprocess.Start();
myprocess.WaitForExit();
batch file contains..
cd <directory inwhich file to be put>
binary
put <filename>
quit
The error Iam getting is, when we try to create a handshake for the first
time, we need to give a yes which we are not able to do in this case and
hence the connect gets closed.
Can anyone throw some light on this??????
I need to sftp a file from my ASP.NET application to a unix server. I tried
to run the sftp2 from command line...
Process myprocess=new Process();
myprocess.StartInfo.FileName="sftp2";
myprocess.StartInfo.Arguments="-W <password file> -B <batch file>
<user>@<host_name>"
myprocess.StartInfo.WindoStyle=ProcessWindowStyle.Normal;
myprocess.Start();
myprocess.WaitForExit();
batch file contains..
cd <directory inwhich file to be put>
binary
put <filename>
quit
The error Iam getting is, when we try to create a handshake for the first
time, we need to give a yes which we are not able to do in this case and
hence the connect gets closed.
Can anyone throw some light on this??????