Operating System - HP-UX
1835061 Members
2179 Online
110073 Solutions
New Discussion

Re: SFTP without prompting password

 
ashanabey
Advisor

SFTP without prompting password

Is there a way that I can sftp from a HPUX box to windows server without prompting for password? I would like to use one command line to complete files transfer without any human interaction.

Thank you

Ashan
legend the heart and lend the hand
3 REPLIES 3
OldSchool
Honored Contributor

Re: SFTP without prompting password

yes. first you will need to install PuTTY on the PC.

generate and save a set of keys on the PC. Copy the "public key" to the HPUX box (same steps as "Passwordless" login).

then on the PC create a file containing whatever ftp commands are needed (cd, get, put, bye...same as ftp)

the command line in window is:
psftp -b -i
OldSchool
Honored Contributor

Re: SFTP without prompting password

well, thats the wrong way around for what you asked....

might have better luck in a windows forum
Steven Schweda
Honored Contributor

Re: SFTP without prompting password

I know nothing, but I assume that you need to
set up the usual SSH key files on the client
and server systems. (Hint: Testing using
"ssh [-v]" is probably easier than with
"sftp".) The SSH documentation on each
system should explain things. A Forum search
for SSH should find several explanations for
HP-UX. For Windows, I can't offer (even
this) much help.