Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSH & SFTP accessing VMS Servers 2

Status
Not open for further replies.

ianholmes

Programmer
Mar 24, 2001
61
0
0
GB
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
 
Read the section of the ssh manual page on "authorized_keys" and then read the manual page for "ssh-keygen" to find out how to generate keypairs.
 
Yes, and after reading man for ssh and ssh-keygen, you could also read man for ssh-agent and ssh-add.

--------------------

Denis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top