<?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 connection using a shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791681#M265142</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you're ftp'ing for example from one unix server to another unix server you can use scp aswell.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/6073/FAQ-SSH.pdf" target="_blank"&gt;http://docs.hp.com/en/6073/FAQ-SSH.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.hpuxconsulting.com/5004.ppt#256,46,Slide" target="_blank"&gt;http://www.hpuxconsulting.com/5004.ppt#256,46,Slide&lt;/A&gt; 46&lt;BR /&gt;&lt;A href="http://www.openssh.org/faq.html" target="_blank"&gt;http://www.openssh.org/faq.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Goodluck,&lt;BR /&gt;&lt;BR /&gt;Darrel</description>
    <pubDate>Sun, 28 May 2006 04:29:24 GMT</pubDate>
    <dc:creator>Darrel Louis</dc:creator>
    <dc:date>2006-05-28T04:29:24Z</dc:date>
    <item>
      <title>SFTP connection using a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791678#M265139</link>
      <description>I was using ftp to send files from one server to another: &lt;BR /&gt; &lt;BR /&gt;************ &lt;BR /&gt; &lt;BR /&gt;ftp -nv &amp;lt;&amp;lt; EOF &lt;BR /&gt;open $IP &lt;BR /&gt;user $USER $PASS &lt;BR /&gt;ascii &lt;BR /&gt;lcd $SOURCE &lt;BR /&gt;cd $DESTINATION &lt;BR /&gt;put $FILE &lt;BR /&gt;bye &lt;BR /&gt;EOF &lt;BR /&gt;echo "File transfered" &lt;BR /&gt; &lt;BR /&gt;************** &lt;BR /&gt;&lt;BR /&gt;I have the following questions:&lt;BR /&gt; &lt;BR /&gt;1.) How can I do the same using now SFTP?&lt;BR /&gt;2.) How to disable auto-login?&lt;BR /&gt;3.) How to pass the user/pass to stfp through the shell script? &lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Sat, 20 May 2006 06:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791678#M265139</guid>
      <dc:creator>Atheer Tariq</dc:creator>
      <dc:date>2006-05-20T06:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP connection using a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791679#M265140</link>
      <description>1. Same as ftp script. But before doing that set hosts to do key based password authentication. You need to generate private and public keys and set them to do password less authentication. man ssh-keygen and search forums for setting it up.&lt;BR /&gt;&lt;BR /&gt;2. If you are using hp ssh, it comes with tcp wrappers. Make use of /etc/hosts.deny file. &lt;BR /&gt;&lt;BR /&gt;3. Same as 1. Set ssh/scp/sftp to password less authentication.</description>
      <pubDate>Sat, 20 May 2006 06:39:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791679#M265140</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-05-20T06:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP connection using a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791680#M265141</link>
      <description>Many thanks for your answer first!&lt;BR /&gt;&lt;BR /&gt;What I need is a shell script to use to send a file using SFTP that I can put it in cron. what I can't do now is having the script using the login/pass he got to connect automatically to the remote server.&lt;BR /&gt;&lt;BR /&gt;I'm not familiar with this private and public keys stuff. Is that really needed.</description>
      <pubDate>Sun, 28 May 2006 04:16:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791680#M265141</guid>
      <dc:creator>Atheer Tariq</dc:creator>
      <dc:date>2006-05-28T04:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP connection using a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791681#M265142</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you're ftp'ing for example from one unix server to another unix server you can use scp aswell.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/6073/FAQ-SSH.pdf" target="_blank"&gt;http://docs.hp.com/en/6073/FAQ-SSH.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.hpuxconsulting.com/5004.ppt#256,46,Slide" target="_blank"&gt;http://www.hpuxconsulting.com/5004.ppt#256,46,Slide&lt;/A&gt; 46&lt;BR /&gt;&lt;A href="http://www.openssh.org/faq.html" target="_blank"&gt;http://www.openssh.org/faq.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Goodluck,&lt;BR /&gt;&lt;BR /&gt;Darrel</description>
      <pubDate>Sun, 28 May 2006 04:29:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791681#M265142</guid>
      <dc:creator>Darrel Louis</dc:creator>
      <dc:date>2006-05-28T04:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP connection using a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791682#M265143</link>
      <description>i wrote an example in 5 min.take a look;&lt;BR /&gt;&lt;BR /&gt;#mget a file by using sftp--SAMPLE--&lt;BR /&gt;&lt;BR /&gt;command='( sleep 1; echo '&lt;BR /&gt;&lt;BR /&gt;command1='; sleep 1; echo mget &lt;SOURCE_FILE&gt;; sleep 1; echo exit;  ) |&lt;BR /&gt;sftp username@&lt;IP&gt;&lt;BR /&gt;eval $s_command&lt;BR /&gt;&lt;BR /&gt;s_command=$command$command1"&amp;gt; x_log 2&amp;gt;&amp;amp;1"&lt;BR /&gt;echo 'connecting to the server..'&lt;BR /&gt;rm ./x_log&lt;/IP&gt;&lt;/SOURCE_FILE&gt;</description>
      <pubDate>Mon, 29 May 2006 01:24:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-connection-using-a-shell-script/m-p/3791682#M265143</guid>
      <dc:creator>Mustafa Gulercan</dc:creator>
      <dc:date>2006-05-29T01:24:58Z</dc:date>
    </item>
  </channel>
</rss>

