delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/21/08:07:21

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" <abatishchev AT godfather DOT net DOT ru>
To: <cygwin AT cygwin DOT com>
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
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019