I need to replace telnet and ftp with ssh & sftp when accessing VMS Servers (from AIX environment)
I know that telnet <hostname> is replaced by
ssh <userid>@<hostname> from the AIX prompt.
But I have my ftp commands within scripts.
ie
vaxhost = x.y.z
for file in $X
do
print "put $file ${file%.dat}"
done >> /tmp/tempfile
ftp $vaxhost < /tmp/tempfile etc etc
I thought I would replace this with
sftp <userid>@vaxhost < /tmp/tempfile
but this appears not to work because it is expecting a password for <userid>, which is no good for running scripts.
How to I bye-pass the entry of the password ?
Thanks
I know that telnet <hostname> is replaced by
ssh <userid>@<hostname> from the AIX prompt.
But I have my ftp commands within scripts.
ie
vaxhost = x.y.z
for file in $X
do
print "put $file ${file%.dat}"
done >> /tmp/tempfile
ftp $vaxhost < /tmp/tempfile etc etc
I thought I would replace this with
sftp <userid>@vaxhost < /tmp/tempfile
but this appears not to work because it is expecting a password for <userid>, which is no good for running scripts.
How to I bye-pass the entry of the password ?
Thanks