<?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: Using scp in a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054065#M813495</link>
    <description>Mike,&lt;BR /&gt;&lt;BR /&gt;have you compiles scp yourself? if so did you turn on --with-scp-stats?&lt;BR /&gt;&lt;BR /&gt;Please advise&lt;BR /&gt;Donny</description>
    <pubDate>Thu, 21 Aug 2003 14:58:08 GMT</pubDate>
    <dc:creator>Donny Jekels</dc:creator>
    <dc:date>2003-08-21T14:58:08Z</dc:date>
    <item>
      <title>Using scp in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054064#M813494</link>
      <description>I am trying to execute an SCP between two servers.  The servers are configured with ssh of course, but when the script runs, as I have issued the command:&lt;BR /&gt;&lt;BR /&gt;scp -v -q FILE USER@DESTINATION:/DIRECTORY&lt;BR /&gt;&lt;BR /&gt;the script seems to hang.&lt;BR /&gt;&lt;BR /&gt;I decided to write output of script to a file, and the only significant thing I see is that I see a "Host key verification failed", which makes me inclined to believe that I may have corrupt keys.&lt;BR /&gt;&lt;BR /&gt;Any suggestions?&lt;BR /&gt;&lt;BR /&gt;Thanx in advance.&lt;BR /&gt;&lt;BR /&gt;Mike-</description>
      <pubDate>Thu, 21 Aug 2003 14:48:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054064#M813494</guid>
      <dc:creator>Michael Elleby III_1</dc:creator>
      <dc:date>2003-08-21T14:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054065#M813495</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;have you compiles scp yourself? if so did you turn on --with-scp-stats?&lt;BR /&gt;&lt;BR /&gt;Please advise&lt;BR /&gt;Donny</description>
      <pubDate>Thu, 21 Aug 2003 14:58:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054065#M813495</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2003-08-21T14:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054066#M813496</link>
      <description>Donny-&lt;BR /&gt;&lt;BR /&gt;All of this was already in place when I was asked to review the issue as it is a job being launched by Tivoli Workload Scheduler.&lt;BR /&gt;&lt;BR /&gt;Mike-</description>
      <pubDate>Thu, 21 Aug 2003 15:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054066#M813496</guid>
      <dc:creator>Michael Elleby III_1</dc:creator>
      <dc:date>2003-08-21T15:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054067#M813497</link>
      <description>Actually, it is more likely the IP address of the server changed, or the server's key changed. This would then be out of sync with the info stored in the ssh key file and ssh would flag it as a possible attack.&lt;BR /&gt;&lt;BR /&gt;The key files are stored in your home directory in the .ssh directory. There is one for ssh v2 and one for ssh v1 keys. These are just plain text files, so you can edit them and remove the offending host. Then reconnect with ssh to cache the key again and then scp should work.&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Thu, 21 Aug 2003 15:02:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054067#M813497</guid>
      <dc:creator>Brian Bergstrand</dc:creator>
      <dc:date>2003-08-21T15:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054068#M813498</link>
      <description>Looks like you have not loaded the identification  before starting the script.&lt;BR /&gt;&lt;BR /&gt;I haven't a script at hand, but something like a&lt;BR /&gt;&lt;BR /&gt;ssh-add&lt;BR /&gt;&lt;BR /&gt;o the sourcing of the proper file will work.&lt;BR /&gt;I remember sourcing the agent.dat, but i don't remembr well. &lt;BR /&gt;&lt;BR /&gt;Second, try manually the connection using &lt;BR /&gt;&lt;BR /&gt;ssh -v user@host&lt;BR /&gt;&lt;BR /&gt;it that works, then your keys are OK.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;  Massimo</description>
      <pubDate>Thu, 21 Aug 2003 15:36:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054068#M813498</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-08-21T15:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054069#M813499</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;regenerate your keys for the client first then upload the new key. check your keys with a ssh connection.&lt;BR /&gt;&lt;BR /&gt;let us know how its going,&lt;BR /&gt;Donny</description>
      <pubDate>Thu, 21 Aug 2003 16:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054069#M813499</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2003-08-21T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054070#M813500</link>
      <description>Hey guys-&lt;BR /&gt;&lt;BR /&gt;Right now, the scp completes without incident when I execute it from the command line.  The issue occurs when I attempt to run this script from within TWS.&lt;BR /&gt;&lt;BR /&gt;I am still investigating and will keep you updated on my progress.&lt;BR /&gt;&lt;BR /&gt;Mike-</description>
      <pubDate>Thu, 21 Aug 2003 16:59:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054070#M813500</guid>
      <dc:creator>Michael Elleby III_1</dc:creator>
      <dc:date>2003-08-21T16:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054071#M813501</link>
      <description>This may be an environment var problem then. If the script works fine from your shell, then you may need to export the SSH_AGENT and friends variables to the TWS environment. (Not sure what TWS is.)&lt;BR /&gt;&lt;BR /&gt;I assume you are using ssh-agent so you your local keys are cached after being decrypted once. Otherwise you would need to enter your key passphrase everytime ssh/scp was run.</description>
      <pubDate>Thu, 21 Aug 2003 18:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054071#M813501</guid>
      <dc:creator>Brian Bergstrand</dc:creator>
      <dc:date>2003-08-21T18:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using scp in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054072#M813502</link>
      <description>That was Brian!&lt;BR /&gt;&lt;BR /&gt;I checked: we use sh-agent, and every script loads:&lt;BR /&gt;&lt;BR /&gt;~/var/opt/ssh/ssh-agent.dat&lt;BR /&gt;&lt;BR /&gt;that contains the proper SSH variables to use the autentication.&lt;BR /&gt;&lt;BR /&gt;   Massimo&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Aug 2003 07:48:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-scp-in-a-script/m-p/3054072#M813502</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-08-22T07:48:17Z</dc:date>
    </item>
  </channel>
</rss>

