<?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 Scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-scripts/m-p/3377326#M196783</link>
    <description>sftp comes with another nice little product.&lt;BR /&gt;&lt;BR /&gt;Its called scp&lt;BR /&gt;&lt;BR /&gt;if you exchange public keys, you can scp a file from server to server with no risk. This also applies to Linux and other flavors of Unix running openssh.&lt;BR /&gt;&lt;BR /&gt;I am attaching a word doc on  how to exchange public keys. Its easy. You don't need X, you can do it with cat.&lt;BR /&gt;&lt;BR /&gt;Do pay attention to the directory permissions.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Sun, 12 Sep 2004 23:29:25 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2004-09-12T23:29:25Z</dc:date>
    <item>
      <title>SFTP Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-scripts/m-p/3377325#M196782</link>
      <description>Hi All, &lt;BR /&gt;&lt;BR /&gt;I am running SFTP using expect script below :&lt;BR /&gt;&lt;BR /&gt;#!/usr/local/bin/expect&lt;BR /&gt;spawn sftp -b batchFile &lt;USER&gt;@&lt;REMOTEHOSTS&gt;&lt;BR /&gt;expect "password:"&lt;BR /&gt;send "&lt;PASSWORD&gt;\n";&lt;BR /&gt;interact&lt;BR /&gt;&lt;BR /&gt;I have an issue on above script as the password need to be hard-coded in the script. &lt;BR /&gt;&lt;BR /&gt;Is there any other way how to prevent it? Or How can we translate the script to another methods such as perl or C or shell, so I can avoid hard-code password?&lt;BR /&gt;&lt;BR /&gt;I just want to mitigate the security risk because of hard-coded password. &lt;BR /&gt;&lt;BR /&gt;Pls help. High score will be given. &lt;BR /&gt;&lt;BR /&gt;Thanks and Best Regards,&lt;BR /&gt;Negara&lt;/PASSWORD&gt;&lt;/REMOTEHOSTS&gt;&lt;/USER&gt;</description>
      <pubDate>Sun, 12 Sep 2004 23:22:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-scripts/m-p/3377325#M196782</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2004-09-12T23:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-scripts/m-p/3377326#M196783</link>
      <description>sftp comes with another nice little product.&lt;BR /&gt;&lt;BR /&gt;Its called scp&lt;BR /&gt;&lt;BR /&gt;if you exchange public keys, you can scp a file from server to server with no risk. This also applies to Linux and other flavors of Unix running openssh.&lt;BR /&gt;&lt;BR /&gt;I am attaching a word doc on  how to exchange public keys. Its easy. You don't need X, you can do it with cat.&lt;BR /&gt;&lt;BR /&gt;Do pay attention to the directory permissions.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 12 Sep 2004 23:29:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-scripts/m-p/3377326#M196783</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-09-12T23:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP Scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-scripts/m-p/3377327#M196784</link>
      <description>Steven, &lt;BR /&gt;&lt;BR /&gt;Thanks alot. &lt;BR /&gt;&lt;BR /&gt;Actually for now I do not prefer to use public/private keys because of company's policy reasons. My customer is requesting to run SFTP in batch file without generating public/private keys. One of the solution is using expect script above, but it is needed to had-code the password in the script. Any idea?&lt;BR /&gt;&lt;BR /&gt;Thanks alot. &lt;BR /&gt;Best Regards,&lt;BR /&gt;Negara</description>
      <pubDate>Mon, 13 Sep 2004 00:04:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-scripts/m-p/3377327#M196784</guid>
      <dc:creator>Dewa Negara_4</dc:creator>
      <dc:date>2004-09-13T00:04:24Z</dc:date>
    </item>
  </channel>
</rss>

