11-07-2011 01:31 AM
I want to automate the files transfer process b/w VMS to Windows system in a command procedure.
Below command is not woking as SFTP still prompts for Password eventhough password is included in transfer.com file.
SFTP "-B" transfer.com firstname.lastname@example.org
As per my search on net this batch files doesn't work for passing password,
So I am looking for the exact steps to generate public & privatekeys and sedning *.pub key to windows then making it as a passworless authentication, so that i can then automate,
could any body please sendme the exact syntax and steps for this, as " HP TCP/IP Services for OpenVMSGuide to SSH" doc has vey less info and confusing,
Wainting for a knind, heplful respose.
11-07-2011 05:07 AM
The following are for Windows or Unix or Mac to OpenVMS, but it'll get you the basics:
The official documentation: http://h71000.www7.hp.com/doc/83final/BA548_90007/
Some command line doc: http://labs.hoffmanlabs.com/node/1118
With pictures, for PuTTY: http://labs.hoffmanlabs.com/node/1760
Don't embed passwords in files.
And always protect the private keys.
11-08-2011 02:19 AM
Thanks to Hoff and John.......
It's working now....Thanks for all your suggestion.
I did below steps to make SFTP successful without password on windows system with Public-Key Authentication.
2. SSH_KEYGEN "-P"
3. it generated public "id_dsa_2048_a.pub" and private "id_dsa_2048_a." keys under [username.SSH2]then I renamed them it as below
public "mysusername_sshserverfqdn.pub" and private "mysusername_sshserverfqdn."
4. Then I sent public "mysusername_sshserverfqdn.pub" onto windows server, windows admin added that to usersetting to make Public key authentication.
5. Then I just created [username.SSH2]IDENTIFICATION. and added line " IdKey privatekeyname" without '.'
6. Then it successful logged onto windows server both for SCP & SFTP without password
I was not able to check DEFINE/USER SYS$COMMAND NL:...as windows server is now not available for password authentication after the above change, but still let me try when get change and update you.