Operating System - OpenVMS
1748268 Members
3673 Online
108760 Solutions
New Discussion

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

 
prakashsmtr
Advisor

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

3 REPLIES 3
Hoff
Honored Contributor

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.

John Gillings
Honored Contributor

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
prakashsmtr
Advisor

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