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



I need to transfer some directories and files using sftp using a batch file.  However, I have no control/access to the remote server.  I *CANNOT* use password-less authentication.  It is okay if the user has to enter their password but the actual commands for the transfer should come from the batch file.

I tried:

% 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
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive).
Connection closed

When I ran it using "-v", I did see a couple of warnings:

debug1: Miscellaneous failure
No credentials cache found

debug1: Miscellaneous failure
No credentials cache found

What can I do?  I cannot ssh into the remote server.  scp doesn't seem to work either.



-- 
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