<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SFTP Client (VMS) and RSA key in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sftp-client-vms-and-rsa-key/m-p/4771869#M60534</link>
    <description>John,&lt;BR /&gt;&lt;BR /&gt;  Sounds like they've given you the wrong half! The first and last lines of the file should look like:&lt;BR /&gt;&lt;BR /&gt;BEGIN RSA PUBLIC KEY&lt;BR /&gt;END RSA PUBLIC KEY&lt;BR /&gt;&lt;BR /&gt;Once you have the public half (and hopefully they will regenerate the pair and NOT disclose the private half to you), you may need to fiddle with the file format.&lt;BR /&gt;&lt;BR /&gt; Make sure the physical record terminators match the record format. For example, if the file comes from a PC with &lt;CR&gt;&lt;LF&gt; terminators, the RMS record attribute must be STREAM (not STREAM_LF). I think I've also had to CONVERT files from VAR to STREAM_LF. Otherwise, the key file format should be compatible.&lt;BR /&gt;&lt;/LF&gt;&lt;/CR&gt;</description>
    <pubDate>Wed, 30 Mar 2011 20:09:07 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2011-03-30T20:09:07Z</dc:date>
    <item>
      <title>SFTP Client (VMS) and RSA key</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-client-vms-and-rsa-key/m-p/4771866#M60531</link>
      <description>I have been given a public RSA key (in text form BEGIN RSA PRIVATE KEY .... END RSA PRIVATE KEY). VMS SFTP is the client to connect to a server external to my company using this key to secure a file transmission (replace current FTP process). &lt;BR /&gt;&lt;BR /&gt;Is there a one-time import of the key to my VMS system? If so, what SFTP/SSH syntax is used to import/configure?&lt;BR /&gt;&lt;BR /&gt;Most documentation I have read, including &lt;A href="http://h71000.www7.hp.com/openvms/products/ssh/ssh.pdf" target="_blank"&gt;http://h71000.www7.hp.com/openvms/products/ssh/ssh.pdf&lt;/A&gt; speak intensely about setting up SSH server and generating key pairs.  In my case, I was given the public key and an address to transmit to.&lt;BR /&gt;&lt;BR /&gt;A unix SFTP example was to me. I will try this same syntax when the RSA key has been delt with.&lt;BR /&gt;&lt;BR /&gt;sftp -oPort=22 username@serveripaddress&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;John&lt;BR /&gt;&lt;BR /&gt;- OpenVMS 8.3&lt;BR /&gt;- SSH Secure Shell OpenVMS (V5.5) 3.2.0&lt;BR /&gt;- HP TCP/IP Services for OpenVMS Alpha Version V5.6 - ECO 5  &lt;BR /&gt;</description>
      <pubDate>Wed, 30 Mar 2011 14:44:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-client-vms-and-rsa-key/m-p/4771866#M60531</guid>
      <dc:creator>John T. Farmer</dc:creator>
      <dc:date>2011-03-30T14:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Client (VMS) and RSA key</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-client-vms-and-rsa-key/m-p/4771867#M60532</link>
      <description>&amp;gt; I have been given a public RSA key&lt;BR /&gt;&lt;BR /&gt;Have them check again... looks like they gave you the private half of the key-pair.&lt;BR /&gt;&lt;BR /&gt;Given an SECSH format public key, you'll want to copy that text to a file located in your [.SSH2] directory. The file should be owned by the parent and have a protection mask (RWED,RWED,RE,). The file should also be STMLF format with CR carriage control. You'll also want to create a file named AUTHORIZATION. in the same [.SSH2] directory with the same ownership/protection attributes as the public key file. In that file you'll want to have a directive authorizing this public key by filename. F. ex. a file name whatever.pub would require the following directive&lt;BR /&gt;&lt;BR /&gt;key WHATEVER.pub&lt;BR /&gt;&lt;BR /&gt;I suspect that not only have you been given a private key, but that the format is OpenSSH rather than the SECSH format the VMS needs. So, in addition to requesting the public key, ask that they generate it in SECSH format. If they're not familiar with SECSH format keys have them use google to search for "ssh secsh key format" or somesuch and they'll get numerous hits - this one might help - &lt;A href="http://www.grok.org.uk/docs/ssh.html" target="_blank"&gt;http://www.grok.org.uk/docs/ssh.html&lt;/A&gt; .&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Mar 2011 15:10:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-client-vms-and-rsa-key/m-p/4771867#M60532</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2011-03-30T15:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Client (VMS) and RSA key</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-client-vms-and-rsa-key/m-p/4771868#M60533</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;if you are going to connect to the remote server, then it looks as though they want you to use this private key as your identification.&lt;BR /&gt;&lt;BR /&gt;Allowing for the format issues mentioned above by Jim, you will want to place the private key in your [.ssh2] directory and add the following entry to [.ssh2]identification. &lt;BR /&gt;&lt;BR /&gt;IdKey filename&lt;BR /&gt;&lt;BR /&gt;where filename is the filename you have stored the private key in.&lt;BR /&gt;&lt;BR /&gt;When your VMS system attempts to connect to the remote server, it will present this key as your credentials. They will then authenticate you against the public key which they already have.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Wed, 30 Mar 2011 15:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-client-vms-and-rsa-key/m-p/4771868#M60533</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2011-03-30T15:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Client (VMS) and RSA key</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sftp-client-vms-and-rsa-key/m-p/4771869#M60534</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;  Sounds like they've given you the wrong half! The first and last lines of the file should look like:&lt;BR /&gt;&lt;BR /&gt;BEGIN RSA PUBLIC KEY&lt;BR /&gt;END RSA PUBLIC KEY&lt;BR /&gt;&lt;BR /&gt;Once you have the public half (and hopefully they will regenerate the pair and NOT disclose the private half to you), you may need to fiddle with the file format.&lt;BR /&gt;&lt;BR /&gt; Make sure the physical record terminators match the record format. For example, if the file comes from a PC with &lt;CR&gt;&lt;LF&gt; terminators, the RMS record attribute must be STREAM (not STREAM_LF). I think I've also had to CONVERT files from VAR to STREAM_LF. Otherwise, the key file format should be compatible.&lt;BR /&gt;&lt;/LF&gt;&lt;/CR&gt;</description>
      <pubDate>Wed, 30 Mar 2011 20:09:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sftp-client-vms-and-rsa-key/m-p/4771869#M60534</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2011-03-30T20:09:07Z</dc:date>
    </item>
  </channel>
</rss>

