sftp batch mode and password authentication

Carson Gaspar carson at taltos.org
Fri Mar 3 06:16:53 EST 2006


--On Thursday, March 02, 2006 1:01 PM -0500 Chris Rapier <rapier at psc.edu> 
wrote:

> ponraj wrote:
>> Hi all,
>>
>> I used to execute ftp in batch mode to dowload files. In my case,
>> password  authentication is the only way to get remote access.
>
> Are you saying that you can't use private keys to authenticate? (I have
> seen situations here this happens - usually as a result of severe
> restrictions on shell access to an archival data store). If that is the
> case I don't think you can do this without using something like 'expect'
>   to control the process.

He should be able to use a custom SSH_ASKPASS to do this, although he'll 
need to make sure the sftp batch job has no controlling TTY.

-- 
Carson




More information about the openssh-unix-dev mailing list