Displaying 1 result from an estimated 1 matches for "acctpw".
2001 Mar 15
3
Support for here documents with sftp client in OpenSSH 2.5.1p1-1 (RH Linux 6.2 [2.2.x kernel])
...nsfer scripts. In
particular, the ftp client allows specifying the password in the "user"
command:
user <account> <password>
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:
sftp $account:$acctpw@$theServer <<!
cd $theDir
get *.dat
quit
!
...but it doesn't. Am I...