1828446 Members
3017 Online
109977 Solutions
New Discussion

SFTP issue

 
Pans_2
New Member

SFTP issue

Im trying to SFTP a file from OPen vms box (London) to a Wintel OS (Amsterdam).We have generated and installed the public key on both the boxes.
Is there a naming convention for Public key ?
If so ,is it ket_port number_ip address.pub ?

Currently i can see the public key in SSH2.HOSTKEYS.Where can i find the private key ?
2 REPLIES 2
Steven Schweda
Honored Contributor

Re: SFTP issue

> Im trying to SFTP a file from OPen vms box
> [...]

Not a very useful description of the hardware
or the software, or of what you're doing.

Which system is the SFTP client, and which is
the server?

On the VMS system:

TCPIP SHOW VERSION

> We have generated and installed the public
> key on both the boxes.

Not a very useful description of what you
did, or which files are where.

> Currently i can see the public key in
> SSH2.HOSTKEYS.

[.SSH2.HOSTKEYS] is where the _host_ keys are
stored, not where the _user_ keys are stored.

> Where can i find the private key ?

You said, "We have generated and installed
the public key on both the boxes." Now
you're _asking_ where the key files are?

Assuming that you're using some relatively
recent version of TCPIP on the VMS system,
you might consider looking at the manual:

http://h71000.www7.hp.com/doc/os83_index.html
http://h71000.www7.hp.com/doc/tcpip56.html
http://h71000.www7.hp.com/doc/83final/ba548_90007/index.html

Depending on the (unspecified) SSH software
on the Windows system, you may need to
convert the key files on one system or the
other to or from OpenSSH or SSH2 format. A
Forum search for "ssh" should find many old
threads which discuss this.
Hoff
Honored Contributor

Re: SFTP issue

FWIW, I usually use the associated host name as the name of the file containing the key, though that's not a requirement.

When you create a key, you get both a public and a private key.

A trip through the TCP/IP Services ssh manual is arguably a necessity here. From my own experience, you really need to read that document to get this stuff going; the configuration of this stuff is not nearly as simple and automatic as it should be.

The TCP/IP Services documentation is in a shelf here:

http://www.hp.com/go/openvms/doc

For Mac OS X to OpenVMS, here's the general sequence:

http://labs.hoffmanlabs.com/node/1118

Here are another person's notes on this topic:

http://www3.sympatico.ca/n.rieck/docs/openvms_notes_ssh2.html