<?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: automating sftp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327682#M341502</link>
    <description>I am not sure about sftp, I know you can automate using scp. Following is the procedure.&lt;BR /&gt;&lt;BR /&gt;On source server, generate public and private keys.&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ssh-keygen -t rsa&lt;BR /&gt;/usr/bin/ssh-agent $SHELL&lt;BR /&gt;/usr/bin/ssh-add&lt;BR /&gt;&lt;BR /&gt;Just keep hitting return key.&lt;BR /&gt;&lt;BR /&gt;On the Destnation Server&lt;BR /&gt;&lt;BR /&gt;mkdir $HOME/.ssh&lt;BR /&gt;chmod 700 $HOME/.ssh&lt;BR /&gt;&lt;BR /&gt;From Source Server to Dest&lt;BR /&gt;&lt;BR /&gt;scp $HOME/.ssh/id_rsa.pub Dest_Server_IP:$HOME/.ssh/id_rsa.pub_Source_Server&lt;BR /&gt;&lt;BR /&gt;On Dest Server&lt;BR /&gt;&lt;BR /&gt;cat $HOME/.ssh/id_rsa.pub_Source_Server &amp;gt;&amp;gt; $HOME/.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;You are done.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Ravi.</description>
    <pubDate>Tue, 23 Dec 2008 02:48:25 GMT</pubDate>
    <dc:creator>G V R Shankar</dc:creator>
    <dc:date>2008-12-23T02:48:25Z</dc:date>
    <item>
      <title>automating sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327681#M341501</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need some help in automating sftp. &lt;BR /&gt;&lt;BR /&gt;I have searched this forum and there are numerous threads on this topic but it pertains to OpenVMS. &lt;BR /&gt;&lt;BR /&gt;I am running HP-UX 11.23.&lt;BR /&gt;&lt;BR /&gt;I have tried putting the password in a batch file and executing sftp with '-b' option but it doesn't seem to work - it always prompts for password. =(&lt;BR /&gt;&lt;BR /&gt;Does anyone know how to make it work?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Tue, 23 Dec 2008 01:35:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327681#M341501</guid>
      <dc:creator>so.nimda</dc:creator>
      <dc:date>2008-12-23T01:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: automating sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327682#M341502</link>
      <description>I am not sure about sftp, I know you can automate using scp. Following is the procedure.&lt;BR /&gt;&lt;BR /&gt;On source server, generate public and private keys.&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ssh-keygen -t rsa&lt;BR /&gt;/usr/bin/ssh-agent $SHELL&lt;BR /&gt;/usr/bin/ssh-add&lt;BR /&gt;&lt;BR /&gt;Just keep hitting return key.&lt;BR /&gt;&lt;BR /&gt;On the Destnation Server&lt;BR /&gt;&lt;BR /&gt;mkdir $HOME/.ssh&lt;BR /&gt;chmod 700 $HOME/.ssh&lt;BR /&gt;&lt;BR /&gt;From Source Server to Dest&lt;BR /&gt;&lt;BR /&gt;scp $HOME/.ssh/id_rsa.pub Dest_Server_IP:$HOME/.ssh/id_rsa.pub_Source_Server&lt;BR /&gt;&lt;BR /&gt;On Dest Server&lt;BR /&gt;&lt;BR /&gt;cat $HOME/.ssh/id_rsa.pub_Source_Server &amp;gt;&amp;gt; $HOME/.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;You are done.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Ravi.</description>
      <pubDate>Tue, 23 Dec 2008 02:48:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327682#M341502</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2008-12-23T02:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: automating sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327683#M341503</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;After following the above procedure, I just found that sftp hostname is not asking any password.&lt;BR /&gt;&lt;BR /&gt;Ravi.</description>
      <pubDate>Tue, 23 Dec 2008 03:12:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327683#M341503</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2008-12-23T03:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: automating sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327684#M341504</link>
      <description>&amp;gt; [...] it always prompts for password. =(&lt;BR /&gt;&lt;BR /&gt;Have you arranged the key files for SSH&lt;BR /&gt;access without a password?  (Why not?)&lt;BR /&gt;&lt;BR /&gt;Normally, SSH, SCP, SFTP, Sxxx are used when&lt;BR /&gt;one does not wish to specify a password&lt;BR /&gt;interactively.  (And there should be any&lt;BR /&gt;number of Forum threads related to setting up&lt;BR /&gt;SSH access without using a password, for&lt;BR /&gt;practically every OS.)</description>
      <pubDate>Tue, 23 Dec 2008 03:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327684#M341504</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-12-23T03:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: automating sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327685#M341505</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you configure your server SSH without passwd it will automaticly configure for all S* like SSH, SCP, SFTP, so just configre the above things and do sftp without passwd.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Tue, 23 Dec 2008 04:52:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327685#M341505</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2008-12-23T04:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: automating sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327686#M341506</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Thanks for all your replies.&lt;BR /&gt;&lt;BR /&gt;With regards to setting SSH access without password, is it an "all or nothing" setting? In other words, is it a global setting in that once set without password, all access will be without password or can it be set such that some users will not be prompted while some will?&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 24 Dec 2008 00:51:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327686#M341506</guid>
      <dc:creator>so.nimda</dc:creator>
      <dc:date>2008-12-24T00:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: automating sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327687#M341507</link>
      <description>&amp;gt; [...] is it an "all or nothing" setting?&lt;BR /&gt;&lt;BR /&gt;It can be done per host ("hostbased") or per&lt;BR /&gt;user ("publickey").  Find some appropriate&lt;BR /&gt;SSH documentation.  As I suggested before, a&lt;BR /&gt;Forum search should lead to some.  (I could&lt;BR /&gt;do it for you, but you'll learn more this&lt;BR /&gt;way.)</description>
      <pubDate>Wed, 24 Dec 2008 01:08:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327687#M341507</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-12-24T01:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: automating sftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327688#M341508</link>
      <description>&amp;gt;is it an "all or nothing" setting? In other words, is it a global setting in that once set without password, all access will be without password or can it be set such that some users will not be prompted while some will?&lt;BR /&gt;&lt;BR /&gt;Each user can set it as he pleases.  Assuming you mean from UserA to UserA on different machines.&lt;BR /&gt;You can also set it up so a user doesn't have to enter a passphrase at all (a generic account), to being required at least once.&lt;BR /&gt;There may be configuration settings that may disallow some of these?</description>
      <pubDate>Wed, 24 Dec 2008 01:21:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automating-sftp/m-p/4327688#M341508</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-24T01:21:49Z</dc:date>
    </item>
  </channel>
</rss>

