Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sftp batch mode and interactive passwords



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.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org