<?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: issue with sftp in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133980#M57007</link>
    <description>The SSH File Transfer Protocol is really a file access protocol and contains operations such as open file, get/set file information, read/write data, close file, delete file.  The SFTP user program uses these operations to transfer the data.  SFTP user programs that run on Unix often do operations based upon Unix single version file system: if the file named already exists, then it will delete it or open and truncate it before transferring the new data.&lt;BR /&gt;&lt;BR /&gt;Since the SSH File Transfer Protocol also allows for arbitrary extensions to the protocol there are some implementations that will request that an MD5 checksum be performed (over some portion of the file) and then only transfer the file if the MD5 checksum for the local file is different.</description>
    <pubDate>Mon, 06 Oct 2008 19:43:57 GMT</pubDate>
    <dc:creator>Richard Whalen</dc:creator>
    <dc:date>2008-10-06T19:43:57Z</dc:date>
    <item>
      <title>issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133974#M57001</link>
      <description>A user is sending a file from a Unix platform with sftp.  The file transfer uses public key authentication to log into an Alpha Station running OpenVMS V8.2.  The Alpha Station is running HP TCP/IP V5.6 -ECO 2.&lt;BR /&gt;&lt;BR /&gt;The file(s) transfer successfully for version one of the inbound file.  When the Unix system sends another file with the same name; the VMS box does not receive a file.  The logfile on the Unix system shows that the file was successfully transfered, but VMS does not create a new version of the file.&lt;BR /&gt;&lt;BR /&gt;Doing a $ dir/full filename shows that 'No version limit' is set.&lt;BR /&gt;&lt;BR /&gt;Any suggestions?&lt;BR /&gt;&lt;BR /&gt;Kevin</description>
      <pubDate>Mon, 06 Oct 2008 16:25:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133974#M57001</guid>
      <dc:creator>Kevin Carter_3</dc:creator>
      <dc:date>2008-10-06T16:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133975#M57002</link>
      <description>Several questions...&lt;BR /&gt;&lt;BR /&gt;To confirm: when the second transfer completes, you find the old version on the system, and not the new?  Or does the file now contain the new bits and not the old?&lt;BR /&gt;&lt;BR /&gt;To confirm: when the second transfer specifies a second and different filename from any existing file in the target directory, you get the second file transfered correctly?&lt;BR /&gt;&lt;BR /&gt;To confirm: the default directory is or is not a searchlist?  That is, the operation is or is not involving the SYSTEM manager username or the SYS$SYSROOT: directories?&lt;BR /&gt;&lt;BR /&gt;To confirm: the target LOGIN.COM and SYLOGIN.COM login procedures (for the purposes of testing the transfer) have been examined for and sanitized of errors and are otherwise known not interfering with the transfer.&lt;BR /&gt;&lt;BR /&gt;To confirm: the enveloping directory itself does not also have a version limit set?  What does the directory indicate for its version limit?&lt;BR /&gt;&lt;BR /&gt;Also please post the identity of the Unix box sftp client and version, and please post the connection sequence including the put command used to transfer the file(s).&lt;BR /&gt;&lt;BR /&gt;Also enable verification using sftp -vvv and try it again, and also enable the sftp daemon debugging per the manual.  (IIRC, there's a debug logical name listed in the ssh manual for ssh (TCPIP$SSH_SERVER_DEBUG); haven't checked to see if there's one around for the sftp daemon, but I'd expect there's a way to turn on some logging either via logical name or via some sftp daemon command procedure or otherwise.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Oct 2008 16:50:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133975#M57002</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-10-06T16:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133976#M57003</link>
      <description>Since SFTP was designed around the Unix model of version-less files, it's possible that second transfer either deleted the original file before transferring the new file, or truncated the original file and rewrote it with the new data.</description>
      <pubDate>Mon, 06 Oct 2008 16:51:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133976#M57003</guid>
      <dc:creator>Richard Whalen</dc:creator>
      <dc:date>2008-10-06T16:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133977#M57004</link>
      <description>Kevin,&lt;BR /&gt;&lt;BR /&gt;I know little about this stuff, but, with the quirks of TCPIP involved, I'd say there is one other thing to check (besides the points Hoff &amp;amp; Richard already made): maybe the second send is APPENDED to the first?&lt;BR /&gt;&lt;BR /&gt;fwiw&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Mon, 06 Oct 2008 17:44:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133977#M57004</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2008-10-06T17:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133978#M57005</link>
      <description>To confirm: when the second transfer completes, you find the old version on the system, and not the new? &lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; yes the old version of the file is on the system&lt;BR /&gt;&lt;BR /&gt;Or does the file now contain the new bits and not the old?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I will have to test this and get back to you, might take a day&lt;BR /&gt;&lt;BR /&gt;To confirm: when the second transfer specifies a second and different filename from any existing file in the target directory, you get the second file transferred correctly&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Yes, the file transfer was originally set up to transfer a file with an extension of the date concatenated and this worked fine; for example simdv6b.20081006 - todays file simdv6b.20081005 - yesterdays file.  The problem started when I had the extension changed to simdv6b.txt for the production environment.&lt;BR /&gt;&lt;BR /&gt;To confirm: the default directory is or is not a searchlist? That is, the operation is or is not involving the SYSTEM manager username or the SYS$SYSROOT: directories?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; No the default directory is not a searchlist.&lt;BR /&gt;&lt;BR /&gt;To confirm: the target LOGIN.COM and SYLOGIN.COM login procedures (for the purposes of testing the transfer) have been examined for and sanitized of errors and are otherwise known not interfering with the transfer.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; the login.com contains only $ exit and the syslogin.com does not appear to be causing the issue. I can attach a copy if you like?&lt;BR /&gt;&lt;BR /&gt;To confirm: the enveloping directory itself does not also have a version limit set? What does the directory indicate for its version limit?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; a dir/full on the parent / only directory above the directory shows 'No default version limit'&lt;BR /&gt;&lt;BR /&gt;Also please post the identity of the Unix box sftp client and version, and please post the connection sequence including the put command used to transfer the file(s).&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; will gather this info and post it, I do know that the transfer is being done in a script on the Unix box&lt;BR /&gt;&lt;BR /&gt;Also enable verification using sftp -vvv and try it again, and also enable the sftp daemon debugging per the manual.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; tried this, the log shows successfull transfer of the file - you may be correct that the second file is being appended to the first - again will know more after testing&lt;BR /&gt;&lt;BR /&gt;(IIRC, there's a debug logical name listed in the ssh manual for ssh (TCPIP$SSH_SERVER_DEBUG); haven't checked to see if there's one around for the sftp daemon, but I'd expect there's a way to turn on some logging either via logical name or via some sftp daemon command procedure or otherwise.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; turned on verbose mode in ssh server - nothing unusual jumps out when compared to other logfiles for file transfer</description>
      <pubDate>Mon, 06 Oct 2008 18:29:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133978#M57005</guid>
      <dc:creator>Kevin Carter_3</dc:creator>
      <dc:date>2008-10-06T18:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133979#M57006</link>
      <description>&lt;!--!*#--&gt;Hmmm.  Around here:&lt;BR /&gt;&lt;BR /&gt;alp $ tcpip show version&lt;BR /&gt;&lt;BR /&gt;  HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 7&lt;BR /&gt;  on a COMPAQ Professional Workstation XP1000 running OpenVMS V7.3-2&lt;BR /&gt;&lt;BR /&gt;alp $ sftp "-V"&lt;BR /&gt;alp$dka0:[sys0.syscommon.][sysexe]tcpip$ssh_sftp2.exe: SSH Secure Shell OpenVMS&lt;BR /&gt;(V5.5) 3.2.0 on COMPAQ Professional Workstation  - VMS V7.3-2&lt;BR /&gt;&lt;BR /&gt;And after this:&lt;BR /&gt;&lt;BR /&gt;alp $ show defa&lt;BR /&gt;  ALP$DKA0:[SMS.test]&lt;BR /&gt;&lt;BR /&gt;alp $ sftp sms@alp&lt;BR /&gt;sftp&amp;gt; put fred.txt&lt;BR /&gt;fred.txt                          |  798kB |  99.7 kB/s | TOC: 00:00:08 | 100%&lt;BR /&gt;sftp&amp;gt; put fred.txt&lt;BR /&gt;fred.txt                          |  798kB |  99.7 kB/s | TOC: 00:00:08 | 100%&lt;BR /&gt;sftp&amp;gt; quit&lt;BR /&gt;&lt;BR /&gt;I see these:&lt;BR /&gt;&lt;BR /&gt;alp $ dg [-]fred.txt&lt;BR /&gt;&lt;BR /&gt;Directory ALP$DKA0:[SMS]&lt;BR /&gt;&lt;BR /&gt;FRED.TXT;2               1596   6-OCT-2008 14:25:14.43  (RWED,RWED,RE,)&lt;BR /&gt;FRED.TXT;1               1596   6-OCT-2008 14:25:00.91  (RWED,RWED,RE,)&lt;BR /&gt;&lt;BR /&gt;Total of 2 files, 3192 blocks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I could fire up a UNIX system and try it from&lt;BR /&gt;there, but it seems unlikely that using a&lt;BR /&gt;UNIX SFTP client would make things worse.&lt;BR /&gt;&lt;BR /&gt;Safe to assume that the UNIX user is not&lt;BR /&gt;specifying a VMS version number on the&lt;BR /&gt;destination?  (Why should I need to assume&lt;BR /&gt;anything?  Actual transcript(s)?)</description>
      <pubDate>Mon, 06 Oct 2008 18:34:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133979#M57006</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-10-06T18:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133980#M57007</link>
      <description>The SSH File Transfer Protocol is really a file access protocol and contains operations such as open file, get/set file information, read/write data, close file, delete file.  The SFTP user program uses these operations to transfer the data.  SFTP user programs that run on Unix often do operations based upon Unix single version file system: if the file named already exists, then it will delete it or open and truncate it before transferring the new data.&lt;BR /&gt;&lt;BR /&gt;Since the SSH File Transfer Protocol also allows for arbitrary extensions to the protocol there are some implementations that will request that an MD5 checksum be performed (over some portion of the file) and then only transfer the file if the MD5 checksum for the local file is different.</description>
      <pubDate>Mon, 06 Oct 2008 19:43:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133980#M57007</guid>
      <dc:creator>Richard Whalen</dc:creator>
      <dc:date>2008-10-06T19:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133981#M57008</link>
      <description>Please show your work; post the verbose diagnostics and the commands used.   The " nothing unusual jumps out" phrase can be a particularly deadly assumption when debugging stuff.  That's arguably the definition of a good bug, after all.  And another set of eyes can sometimes help spot those critters.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Oct 2008 19:49:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133981#M57008</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-10-06T19:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133982#M57009</link>
      <description>Looks like I have some homework to do, thanks for the input so far.  I will do as suggested and 'show your work'. This will probably take 24 hours as the person responsible for the sftp from the Unix side is not available today.&lt;BR /&gt;&lt;BR /&gt;Kevin</description>
      <pubDate>Mon, 06 Oct 2008 21:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133982#M57009</guid>
      <dc:creator>Kevin Carter_3</dc:creator>
      <dc:date>2008-10-06T21:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133983#M57010</link>
      <description>Mystery solved.  The Unix sftp process overwrites the file on the VMS system.  But it does not modify the date / time stamp on the file.  So if a file simdv6b.dat is created on 5-oct-2008 and another file with the same name is sent on 6-oct-2008 I would not know unless the size of the file changed.</description>
      <pubDate>Mon, 06 Oct 2008 21:43:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133983#M57010</guid>
      <dc:creator>Kevin Carter_3</dc:creator>
      <dc:date>2008-10-06T21:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133984#M57011</link>
      <description>By using trouble shooting suggestions from the discussion - was able to determine the cause of the problem.</description>
      <pubDate>Mon, 06 Oct 2008 21:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133984#M57011</guid>
      <dc:creator>Kevin Carter_3</dc:creator>
      <dc:date>2008-10-06T21:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133985#M57012</link>
      <description>If you have a support contract, log a report against TCP/IP Services; you've found a bug somewhere.  If this is a different file, it should have a different timestamp set, and it's the TCP/IP sftp server that's apparently skipping a step.  (Auditors particularly like this class of bug, but that's another discussion.)</description>
      <pubDate>Tue, 07 Oct 2008 00:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133985#M57012</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-10-07T00:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: issue with sftp</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133986#M57013</link>
      <description>Using a UNIX (HP-UX 11.11) SSH client, with&lt;BR /&gt;the same VMS server as before, I got the same&lt;BR /&gt;result as shown before (two file versions).&lt;BR /&gt;Using a newer VMS system:&lt;BR /&gt;&lt;BR /&gt;ALP2 $ tcpip show version&lt;BR /&gt;&lt;BR /&gt;  HP TCP/IP Services for OpenVMS Alpha Version V5.6 - ECO 2&lt;BR /&gt;  on a COMPAQ Professional Workstation XP1000 running OpenVMS V8.3&lt;BR /&gt;&lt;BR /&gt;I got the same result again, from both a VMS&lt;BR /&gt;client and an HP-UX client.&lt;BR /&gt;&lt;BR /&gt;Whatever your problem is, I don't see it on&lt;BR /&gt;my systems.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Mystery solved.&lt;BR /&gt;&lt;BR /&gt;I doubt it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;  The Unix sftp process overwrites the file&lt;BR /&gt;&amp;gt; on the VMS system.  [...]&lt;BR /&gt;&lt;BR /&gt;The SFTP client process does _not_ write&lt;BR /&gt;anything on the SFTP server system.  It&lt;BR /&gt;_asks_ the SFTP server to do things, and the&lt;BR /&gt;server process does the work.  I know of no&lt;BR /&gt;way for the client to tell the server to do&lt;BR /&gt;anything in particular with VMS file&lt;BR /&gt;versions.  Perhaps there's some way to&lt;BR /&gt;configure the SFTP _server_ to do something&lt;BR /&gt;exotic, but on my systems (with what must be&lt;BR /&gt;pretty close to the default configurations),&lt;BR /&gt;things work as I'd expect them to work, not&lt;BR /&gt;the way you say that they work for you.</description>
      <pubDate>Tue, 07 Oct 2008 01:37:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/issue-with-sftp/m-p/5133986#M57013</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-10-07T01:37:15Z</dc:date>
    </item>
  </channel>
</rss>

