sftp batch mode and interactive passwords
robertlaferla at comcast.net
robertlaferla at comcast.net
Wed Feb 21 15:47:11 EST 2007
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.
More information about the Discuss
mailing list