X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org From: "Alexander M. Batishchev" To: Subject: How to force sftp to expect a password from the keyboard in the batch mode Date: Sun, 21 Dec 2008 16:06:25 +0300 Message-ID: <001101c9636c$ee020f60$ca062e20$@net.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam 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 AT frs DOT sourceforge DOT net Connecting to frs.sourceforge.net... user AT frs DOT sourceforge DOT 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 AT frs DOT sourceforge DOT 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/