1751779 Members
4563 Online
108781 Solutions
New Discussion юеВ

Re: SFTP on VMS

 
SOLVED
Go to solution
robert70
Valued Contributor

SFTP on VMS

I have been given a public key ssh-rsa
to a secure ftp server.
How do I load this onto my system to allow automated scripts to run to log on and transfer files.
thanks
Robert
6 REPLIES 6
Hoff
Honored Contributor
Solution

Re: SFTP on VMS

Here's the no-password login sequence for ssh and sftp:

http://labs.hoffmanlabs.com/node/1118
http://www3.sympatico.ca/n.rieck/docs/openvms_notes_ssh2.html

The biggest "issue" with any of this is ensuring that the "right" format certificates are used and loaded. Not all clients and servers all have the same sets of formats used for their certificates.

Here is the full documentation for ssh on OpenVMS using the HP TCP/IP Services ssh package.

http://h71000.www7.hp.com/doc/83final/ba548_90007/ba548_90007.pdf

And for debugging, most of the tools around have a "-v" or "-vvv" or similar diagnostic tool.

Google can be a good friend here, too.
Steven Schweda
Honored Contributor

Re: SFTP on VMS

> I have been given [...]

That's nice, but my psychic powers are weak,
so I can't see it, so I don't know much about
its format.

> [...] my system [...]

How much do you expect us to know about the
SSH/SFTP software on "my system"?
robert70
Valued Contributor

Re: SFTP on VMS

yes sorry my system is

ssh -v
:[sys0.syscommon.][sysexe]tcpip$ssh_ssh2.exe: SSH Secure Shell OpenVMS
(V5.5) 3.2.0 on COMPAQ AlphaServer DS20E 666 MHz - VMS V7.3-2



robert70
Valued Contributor

Re: SFTP on VMS

the key looks like this?

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAwNw26SmCJIMND55gF7d38zG9lSVO3OjDJ4fJlRA5NF14v2f+k3Q/OENe+VeNmLhlmDcXCtZkV8/3xUiUUV0jV+h6fXH3WA3CqzY08xLFS6CRI+7zYUMyTn2bz
abVVpB3y66rNrV+gUW53acGmyxMNyc4ZlYe3oZpRNZS8o175g8=user@host
Steven Schweda
Honored Contributor

Re: SFTP on VMS

> ssh -v
> [...]

Ok. TCPIP, so the SSH2 key format is used.

> ssh-rsa AAAAB3N[...]

That looks like an OpenSSH-format key, so
you may need to convert it to SSH2 format.

I think that the TCPIP ssh_keygen program
can _not_ do the conversion. An OpenSSH
ssh-keygen program should be able to do it.
robert70
Valued Contributor

Re: SFTP on VMS

thanks