Support for here documents with sftp client in OpenSSH 2.5.1p1-1 (RH Linux 6.2 [2.2.x kernel])

Markus Friedl Markus.Friedl at informatik.uni-erlangen.de
Fri Mar 16 08:02:53 EST 2001


On Thu, Mar 15, 2001 at 03:53:07PM -0500, Davis, Ricardo C. wrote:
> The scripts use here documents to perform the transfers.  For example:
> 
> ...
> ftp -n -i -v $theServer >$logFile 2>&1 <<!
> user $account $acctpw
> cd $theDir
> get *.dat
> quit
> !
> ...
> 
> It doesn't appear that OpenSSH's sftp client can do this.  Is it possible to
> specify the password as part of the command line?  I thought this might
> work:

this work fine with non-interactive authentication. you can
try publickey.

-m





More information about the openssh-unix-dev mailing list