<?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 scp automated script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-automated-script/m-p/4513755#M366143</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am able to manually scp some files from HP-UX server to a linux server.&lt;BR /&gt;&lt;BR /&gt;If I want to automate that process since those files will be generated on a daily basis, I would like to know what is the best way to write.&lt;BR /&gt;&lt;BR /&gt;Currently, the manual way is as follows :&lt;BR /&gt;&lt;BR /&gt;scp filenames idname@hostname:/home/idname&lt;BR /&gt;&lt;BR /&gt;after key in the password, the files are transferred over.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;Feng Lin&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 14 Oct 2009 05:31:41 GMT</pubDate>
    <dc:creator>Fenglin</dc:creator>
    <dc:date>2009-10-14T05:31:41Z</dc:date>
    <item>
      <title>scp automated script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-automated-script/m-p/4513755#M366143</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I am able to manually scp some files from HP-UX server to a linux server.&lt;BR /&gt;&lt;BR /&gt;If I want to automate that process since those files will be generated on a daily basis, I would like to know what is the best way to write.&lt;BR /&gt;&lt;BR /&gt;Currently, the manual way is as follows :&lt;BR /&gt;&lt;BR /&gt;scp filenames idname@hostname:/home/idname&lt;BR /&gt;&lt;BR /&gt;after key in the password, the files are transferred over.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;Feng Lin&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Oct 2009 05:31:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-automated-script/m-p/4513755#M366143</guid>
      <dc:creator>Fenglin</dc:creator>
      <dc:date>2009-10-14T05:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: scp automated script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-automated-script/m-p/4513756#M366144</link>
      <description>Hi,&lt;BR /&gt;Here is the step how to configure ssh without passwd &lt;BR /&gt;&lt;BR /&gt;Using the below steps, you can ssh to the server from client without the entering any password.&lt;BR /&gt;The machine which run the ssh command is the client&lt;BR /&gt;The machine that the client access using ssh is the server&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Run the following command on the client &lt;BR /&gt;-&amp;gt; ssh-keygen -t dsa&lt;BR /&gt;&lt;BR /&gt;File id_dsa and id_dsa.pub will be created inside $HOME/.ssh&lt;BR /&gt;Copy id_dsa.pub to the server's .ssh directory&lt;BR /&gt;-&amp;gt; scp $HOME/.ssh/id_dsa.pub user@server:/home/user/.ssh&lt;BR /&gt;Change to /root/.ssh and create file authorized_keys containing id_dsa content&lt;BR /&gt;-&amp;gt; cd /home/user/.ssh&lt;BR /&gt;-&amp;gt; cat id_dsa &amp;gt;&amp;gt; authorized_keys&lt;BR /&gt;You can try ssh to the server from the client and no password will be needed&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; ssh user@server&lt;BR /&gt;Another alternative to the above steps is to use ssh-copy-id command. The steps are:&lt;BR /&gt;&lt;BR /&gt;Run the following command on the client &lt;BR /&gt;-&amp;gt; ssh-keygen -t dsa&lt;BR /&gt;File id_dsa and id_dsa.pub will be created inside $HOME/.ssh&lt;BR /&gt;Copy the id_dsa.pub to the server's .ssh directory&lt;BR /&gt;-&amp;gt; ssh-copy-id -i ~/.ssh/id_dsa.pub user@server&lt;BR /&gt;You can try ssh to the server from the client and no password will be needed&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; ssh user@server&lt;BR /&gt;&lt;BR /&gt;Once your ssh without passwd is configured then you can run your scp script it will work&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Wed, 14 Oct 2009 06:38:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-automated-script/m-p/4513756#M366144</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-10-14T06:38:42Z</dc:date>
    </item>
  </channel>
</rss>

