From an AIX box I'm trying to connect to a remote server to drop some files. I've never used sftp before and am having problems which I don't find addressed in the manpage or in this forum.
Here's the situation ...
If this were a regular ftp script I’d do something like this:
In sftp I can’t make it either ignore the password (which I thought was the purpose of the keys we previously generated and sent to the remote system administrator) or read that password from a batch file as follows (from the man page):
where <batfilename> contains the following:
It continues to ask for the password before reading the batch file and then reads the password from the file as a command and promptly aborts.
I've read the manpage, searched this forum and done a preliminary search on the internet without finding a solution.
Thanks in advance for any assistance.
Tom
"My mind is like a steel whatchamacallit ...
Here's the situation ...
If this were a regular ftp script I’d do something like this:
Code:
ftp –n xxx.xxx.xxx.xxx << EOF
user xxx <password>
ascii
prompt
cd …..
mput
quit
EOF
Code:
sftp –b <batfilename> user@IPaddress
Code:
<password>
ascii
prompt
cd …
mput
quit
I've read the manpage, searched this forum and done a preliminary search on the internet without finding a solution.
Thanks in advance for any assistance.
Tom
"My mind is like a steel whatchamacallit ...