Re: FW: openssh 4.0 - sftp batch mode behavior

This is a discussion on Re: FW: openssh 4.0 - sftp batch mode behavior within the OpenSSH Development forums, part of the Networking and Network Related category; Simpson Searcy - ssimps wrote: > Hello, > I just installed the openssh 4.0 for Solaris. The users have reported ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-03-2005
Damien Miller
 
Posts: n/a
Default Re: FW: openssh 4.0 - sftp batch mode behavior

Simpson Searcy - ssimps wrote:
> Hello,
> I just installed the openssh 4.0 for Solaris. The users have reported a
> difference in behavior when using the batch mode of sftp client.
>
> Previously they could issue the following command sftp -b batchfile
> user@hostname and in the absence of publickey authentication they would
> be issued the password prompt and they could enter password and the
> process would continue.


The old behaviour was buggy: sftp's -b uses ssh's BatchMode config
option. From ssh_config(5):

> BatchMode
> If set to ``yes'', passphrase/password querying will be disabled.
> This option is useful in scripts and other batch jobs where no
> user is present to supply the password. The argument must be
> ``yes'' or ``no''. The default is ``no''.


I.e. a sftp client in batch mode shouldn't require any interaction to
function. This stops it from blocking or otherwise misbehaving in
scripts.

If your users need scripted transfers, they can try:

sftp user@host < batchfile

-d

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0