This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to force sftp to expect a password from the keyboard in the batch mode


Hello!
I'm using Cygwin latest under WinXP and trying to upload some files to
sourceforge.net using sftp.
In interactive, non-batch mode everything works fine:

$ sftp user@frs.sourceforge.net
Connecting to frs.sourceforge.net...
user@frs.sourceforge.net's password:
sftp>

but in the batch mode it doesn't asks a password and doesn't logins:

$ cat batch
cd uploads
$ sftp -b batch user@frs.sourceforge.net
Permission denied (publickey,password,keyboard-interactive).
Connection closed

What am I doing wrong?
Is it possible to force sftp to expect a password from the keyboard in the
batch mode? It's impossible to me to keep the password into the batch file,
unfortunately.

Thanks!

===
Best regards,
Alexander M. Batishchev




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]