Re: Need help on SFTP Passwordless Authentication setup from VMS 8.3 to Windows system (902 Views)
Reply
Advisor
prakashsmtr
Posts: 15
Registered: ‎07-04-2011
Message 1 of 4 (954 Views)

Need help on SFTP Passwordless Authentiction setup from VMS 8.3 to Windows system

Hi,

 

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 user@winsserv.com

 

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.

 

Regards

Prakash

Please use plain text.
Honored Contributor
Hoff
Posts: 4,932
Registered: ‎01-29-2006
Message 2 of 4 (939 Views)

Re: Need help on SFTP Passwordless Authentiction setup from VMS 8.3 to Windows system

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/BA548_90007.PDF

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.

Please use plain text.
Honored Contributor
John Gillings
Posts: 2,994
Registered: ‎07-31-2003
Message 3 of 4 (918 Views)

Re: Need help on SFTP Passwordless Authentiction setup from VMS 8.3 to Windows system

Try preceeding your SFTP command with:

 

$ DEFINE/USER SYS$COMMAND NL:

 

 

A crucible of informative mistakes
Please use plain text.
Advisor
prakashsmtr
Posts: 15
Registered: ‎07-04-2011
Message 4 of 4 (902 Views)

Re: Need help on SFTP Passwordless Authentication setup from VMS 8.3 to Windows system

Hi  All,

 

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.

 

1. @SYS$MANAGER:TCPIP$DEFINE_COMMANDS.COM

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

sftp user@winserver.com

sftp> ls

.

sftp>exit 

 

Hi John,

 

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.

 

Regards

Prakash

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation