sftp batch mode and interactive passwords

Don Levey lug at the-leveys.us
Thu Feb 22 16:16:32 EST 2007


On Wed, 2007-02-21 at 16:01 -0500, Dan Ritter wrote:
> On Wed, Feb 21, 2007 at 08:47:11PM +0000, robertlaferla at comcast.net wrote:
> > % sftp -b mybatchfile myuser at myhost
> > 
> > but instead of prompting me for a password, it gives me a:
> > 
> > debug1: Authentications that can continue: publickey,password,keyboard-interactive
> 
> >From the man page:
> 
>   The final usage format allows for automated sessions using the
>   -b option.
>   In such cases, it is necessary to configure non-interactive
>   authentication to obviate the need to enter a password at
>   connection time (see sshd(8) and ssh-keygen(1) for details). 
> 
> In other word, You Can't Do That, That Way.

This is a version thing, and changed between OpenSSH 3.x and 4.x.  Other
SSH vendors have occasionally implemented batch mode differently also.
But yes, scp is probably the better option if possible.
 -Don

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Discuss mailing list