<?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: scp problem in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271894#M60313</link>
    <description>Generic shotgun answer...&lt;BR /&gt;&lt;BR /&gt;Definitely check the scheme used, as mentioned.&lt;BR /&gt;&lt;BR /&gt;$ x=f$mess(27)&lt;BR /&gt;$ sho sym x&lt;BR /&gt;  X = "%SYSTEM-I-EXQUOTA, process quota exceeded"&lt;BR /&gt;$ x=f$mess(%x27)&lt;BR /&gt;$ sho sym x&lt;BR /&gt;  X = "%SYSTEM-?-NOPRIV, insufficient privilege or object protection violation"&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;The second translation is clearly bogus.  The first looks questionable.  &lt;BR /&gt;&lt;BR /&gt;When you start detached processes, the whole list of quotas is usually obligatory.&lt;BR /&gt;&lt;BR /&gt;$ sear sys$sysroot:[decc$lib...]errno.h 27&lt;BR /&gt;...&lt;BR /&gt;#define EFBIG           27     /* File too large                        */&lt;BR /&gt;&lt;BR /&gt;And when debugging these cases, it can be useful to start start the detached process by running the LOGINOUT image, so you get access to a CLI.&lt;BR /&gt;&lt;BR /&gt;And also re-try the sequence with the requested -vvv debugging switch (that's the scp "-V" stuff) to troubleshoot what may be happening with the authentication.&lt;BR /&gt;&lt;BR /&gt;And definitely also have a look at the PRC$M_NOUAF bit or the /AUTHORIZE qualifier to the process creation to get the process logical names.  Omitting that knob can mess up some of these cases; missing process logical names.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://snow.hoffmanlabs.net/node/318" target="_blank"&gt;http://snow.hoffmanlabs.net/node/318&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And make sure your detached processes can read your private key files; that you're running with the same user context.&lt;BR /&gt;&lt;BR /&gt;Reposting this as ITRC is being even more like, well, ITRC again today.  More ITRC than usual.</description>
    <pubDate>Fri, 28 Jan 2011 17:18:55 GMT</pubDate>
    <dc:creator>Hoff</dc:creator>
    <dc:date>2011-01-28T17:18:55Z</dc:date>
    <item>
      <title>scp problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271892#M60311</link>
      <description>I have a script which uses scp so send a file to a remote system. It works fine from a Decterm or if I submit it, but fails when spawned from a task which is stated by run/detach. i.e f$mode = 'OTHER'&lt;BR /&gt;&lt;BR /&gt;$ scp "OBRQ_110125JSMP_16461648_2307.CR" cmpsops@cweb...:/home/cmpsops/clu_usr/Input_Area/OBRQ_110125JSMP_16461648_2307.CR&lt;BR /&gt;&lt;BR /&gt;tcpip$ssh_scp2.exe: warning: ssh2 client failed to authenticate. (or you have too old ssh2 installed, check with ssh2 "-V")&lt;BR /&gt;&lt;BR /&gt;tcpip$ssh_scp2.exe: warning: child process (/sys$system/tcpip$ssh_ssh2) exited with code 27.&lt;BR /&gt;&lt;BR /&gt;%TCPIP-E-SSH_FC_ERROR, undetermined error within sshfilecopy&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I don't see anything obvious in my login.com which would cause it to work.&lt;BR /&gt;&lt;BR /&gt;I am using OpenVMS V8.2  &lt;BR /&gt;&lt;BR /&gt;Any ideas?</description>
      <pubDate>Fri, 28 Jan 2011 14:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271892#M60311</guid>
      <dc:creator>Mark Battle</dc:creator>
      <dc:date>2011-01-28T14:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: scp problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271893#M60312</link>
      <description>What kind of authentication is used interactively?&lt;BR /&gt;&lt;BR /&gt;For it to work as a batch job it will need to use publickey or hostbased.</description>
      <pubDate>Fri, 28 Jan 2011 16:30:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271893#M60312</guid>
      <dc:creator>Richard Whalen</dc:creator>
      <dc:date>2011-01-28T16:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: scp problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271894#M60313</link>
      <description>Generic shotgun answer...&lt;BR /&gt;&lt;BR /&gt;Definitely check the scheme used, as mentioned.&lt;BR /&gt;&lt;BR /&gt;$ x=f$mess(27)&lt;BR /&gt;$ sho sym x&lt;BR /&gt;  X = "%SYSTEM-I-EXQUOTA, process quota exceeded"&lt;BR /&gt;$ x=f$mess(%x27)&lt;BR /&gt;$ sho sym x&lt;BR /&gt;  X = "%SYSTEM-?-NOPRIV, insufficient privilege or object protection violation"&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;The second translation is clearly bogus.  The first looks questionable.  &lt;BR /&gt;&lt;BR /&gt;When you start detached processes, the whole list of quotas is usually obligatory.&lt;BR /&gt;&lt;BR /&gt;$ sear sys$sysroot:[decc$lib...]errno.h 27&lt;BR /&gt;...&lt;BR /&gt;#define EFBIG           27     /* File too large                        */&lt;BR /&gt;&lt;BR /&gt;And when debugging these cases, it can be useful to start start the detached process by running the LOGINOUT image, so you get access to a CLI.&lt;BR /&gt;&lt;BR /&gt;And also re-try the sequence with the requested -vvv debugging switch (that's the scp "-V" stuff) to troubleshoot what may be happening with the authentication.&lt;BR /&gt;&lt;BR /&gt;And definitely also have a look at the PRC$M_NOUAF bit or the /AUTHORIZE qualifier to the process creation to get the process logical names.  Omitting that knob can mess up some of these cases; missing process logical names.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://snow.hoffmanlabs.net/node/318" target="_blank"&gt;http://snow.hoffmanlabs.net/node/318&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And make sure your detached processes can read your private key files; that you're running with the same user context.&lt;BR /&gt;&lt;BR /&gt;Reposting this as ITRC is being even more like, well, ITRC again today.  More ITRC than usual.</description>
      <pubDate>Fri, 28 Jan 2011 17:18:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271894#M60313</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-01-28T17:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: scp problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271895#M60314</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;  Keys are kept in the SSH2 sub directory of SYS$LOGIN. Depending on how you start your process, you may be missing some logical names (SYS$LOGIN, SYS$SCRATCH etc...). Without them, SSH can't locate the keys, and therefore can't authenticate.&lt;BR /&gt;&lt;BR /&gt;  Replace your scp procedure with some diagnostics. Simple start:&lt;BR /&gt;&lt;BR /&gt;$ SHOW LOGICAL/PROC&lt;BR /&gt;$ SHOW LOGICAL/JOB&lt;BR /&gt;&lt;BR /&gt;  Catch the output and compare with the output when run from a working environment.&lt;BR /&gt;&lt;BR /&gt;  See what's defined or not. If anything is missing, run something to define them.&lt;BR /&gt;&lt;BR /&gt; Simplest way to locate yourself is to store the procedure in SYS$LOGIN and use F$ENVIRONMENT&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;$ self=F$ENVIRONMENT("PROCEDURE")&lt;BR /&gt;$ syslogin=F$PARSE(self,,,"DEVICE")+F$PARSE(self,,,"DIRECTORY")&lt;BR /&gt;$ DEFINE SYS$LOGIN 'syslogin'&lt;BR /&gt;$ DEFINE SYS$SCRATCH 'syslogin'</description>
      <pubDate>Sun, 30 Jan 2011 20:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271895#M60314</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2011-01-30T20:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: scp problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271896#M60315</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;  As Hoff has noted, you may also have a quota issue. Search for RUN/DETACH commands in SYS$STARTUP:*.COM. Somewhere you'll find a fully populated set of quotas. Copy and paste into your RUN command and maybe copy values from the current process, for example:&lt;BR /&gt;&lt;BR /&gt;/AST_LIMIT='F$GETJPI("","ASTLM") -&lt;BR /&gt;/BUFFER_LIMIT='F$GETJPI("","BYTLM") -&lt;BR /&gt;/ENQUEUE_LIMIT='F$GETJPI("","ENQLM") -&lt;BR /&gt;/QUEUE_LIMIT='F$GETJPI("","TQELM") &lt;BR /&gt;&lt;BR /&gt;(wouldn't it have been nice if the RUN command, AUTHORIZE and $GETJPI were consistent with quota names?)&lt;BR /&gt;&lt;BR /&gt;Unfortunately, the way $CREPRC works (and thus RUN/DETACHED), a naked RUN command without an explicitly populated set of quotas is almost certainly not what you want.</description>
      <pubDate>Sun, 30 Jan 2011 20:52:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271896#M60315</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2011-01-30T20:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: scp problem</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271897#M60316</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;Thanks. Defining sys$login solves the problem.</description>
      <pubDate>Mon, 31 Jan 2011 14:08:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/scp-problem/m-p/5271897#M60316</guid>
      <dc:creator>Mark Battle</dc:creator>
      <dc:date>2011-01-31T14:08:16Z</dc:date>
    </item>
  </channel>
</rss>

