<?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 issue need for solution in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646381#M379891</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;$ /opt/ssh/bin/sftp -v  mdbuild@10.132.1.167&lt;BR /&gt;Connecting to 10.132.1.167...&lt;BR /&gt;OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006&lt;BR /&gt;HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to 10.132.1.167 [10.132.1.167] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: identity file /export/vol01/mdbuild/.ssh/identity type -1&lt;BR /&gt;debug1: identity file /export/vol01/mdbuild/.ssh/id_rsa type 1&lt;BR /&gt;debug1: identity file /export/vol01/mdbuild/.ssh/id_dsa type -1&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14&lt;BR /&gt;debug1: match: OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14 pat OpenSSH*&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&amp;lt;1024&amp;lt;8192) sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;debug1: Host '10.132.1.167' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /export/vol01/mdbuild/.ssh/known_hosts:7&lt;BR /&gt;debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;debug1: Authentications that can continue: publickey,password&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /export/vol01/mdbuild/.ssh/identity&lt;BR /&gt;debug1: Offering public key: /export/vol01/mdbuild/.ssh/id_rsa&lt;BR /&gt;debug1: Authentications that can continue: publickey,password&lt;BR /&gt;debug1: Trying private key: /export/vol01/mdbuild/.ssh/id_dsa&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;mdbuild@10.132.1.167's password: &lt;BR /&gt;&lt;BR /&gt;Here its prompting password my quesiton is without prompting password how we will enter and which file need to be edited.&lt;BR /&gt;&lt;BR /&gt;Please help me reagarding this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;B.suresh &lt;BR /&gt;</description>
    <pubDate>Mon, 14 Jun 2010 05:30:50 GMT</pubDate>
    <dc:creator>suresh04</dc:creator>
    <dc:date>2010-06-14T05:30:50Z</dc:date>
    <item>
      <title>SFTP issue need for solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646377#M379887</link>
      <description>hi &lt;BR /&gt;&lt;BR /&gt;i need to enable sftp on hpux 11.23 server and let me know which file need to edit for without promting password.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;B.Suresh</description>
      <pubDate>Fri, 11 Jun 2010 10:26:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646377#M379887</guid>
      <dc:creator>suresh04</dc:creator>
      <dc:date>2010-06-11T10:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP issue need for solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646378#M379888</link>
      <description>&lt;!--!*#--&gt;Install the software?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA" target="_blank"&gt;https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Read the documentation?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02031523/c02031523.pdf" target="_blank"&gt;http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02031523/c02031523.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Forum search for keywords like, say,&lt;BR /&gt;&lt;BR /&gt;      sftp password&lt;BR /&gt;or&lt;BR /&gt;      ssh passwordless&lt;BR /&gt;&lt;BR /&gt;(or almost anything similar)?</description>
      <pubDate>Fri, 11 Jun 2010 12:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646378#M379888</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-11T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP issue need for solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646379#M379889</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Two relevant articles.&lt;BR /&gt;&lt;BR /&gt;Restricting to public key authentication (disallowing interactive)&lt;BR /&gt;&lt;A href="http://www.hpux.ws/?p=19" target="_blank"&gt;http://www.hpux.ws/?p=19&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Password free ssh/scp/sftp&lt;BR /&gt;&lt;A href="http://www.hpux.ws/?p=10" target="_blank"&gt;http://www.hpux.ws/?p=10&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jun 2010 13:33:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646379#M379889</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-06-11T13:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP issue need for solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646380#M379890</link>
      <description>Use ssh-keygen to create private and public keys first.</description>
      <pubDate>Fri, 11 Jun 2010 14:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646380#M379890</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2010-06-11T14:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP issue need for solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646381#M379891</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;$ /opt/ssh/bin/sftp -v  mdbuild@10.132.1.167&lt;BR /&gt;Connecting to 10.132.1.167...&lt;BR /&gt;OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006&lt;BR /&gt;HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to 10.132.1.167 [10.132.1.167] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: identity file /export/vol01/mdbuild/.ssh/identity type -1&lt;BR /&gt;debug1: identity file /export/vol01/mdbuild/.ssh/id_rsa type 1&lt;BR /&gt;debug1: identity file /export/vol01/mdbuild/.ssh/id_dsa type -1&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14&lt;BR /&gt;debug1: match: OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14 pat OpenSSH*&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&amp;lt;1024&amp;lt;8192) sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;debug1: Host '10.132.1.167' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /export/vol01/mdbuild/.ssh/known_hosts:7&lt;BR /&gt;debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;debug1: Authentications that can continue: publickey,password&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /export/vol01/mdbuild/.ssh/identity&lt;BR /&gt;debug1: Offering public key: /export/vol01/mdbuild/.ssh/id_rsa&lt;BR /&gt;debug1: Authentications that can continue: publickey,password&lt;BR /&gt;debug1: Trying private key: /export/vol01/mdbuild/.ssh/id_dsa&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;mdbuild@10.132.1.167's password: &lt;BR /&gt;&lt;BR /&gt;Here its prompting password my quesiton is without prompting password how we will enter and which file need to be edited.&lt;BR /&gt;&lt;BR /&gt;Please help me reagarding this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;B.suresh &lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jun 2010 05:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646381#M379891</guid>
      <dc:creator>suresh04</dc:creator>
      <dc:date>2010-06-14T05:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: SFTP issue need for solution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646382#M379892</link>
      <description>When using a batchfile with the sftp command (sftp -b &lt;BATCH-FILE&gt; ), first create the user to authenticate using keys instead of passwords.&lt;BR /&gt;&lt;BR /&gt;Setting up the ssh user to login without a password &lt;BR /&gt;&lt;BR /&gt;This section describes how to set up ssh without prompting for passwords (it authenticates with the key).&lt;BR /&gt;&lt;BR /&gt;In this example, gozo is the ssh client, lei is the ssh server. &lt;BR /&gt;&lt;BR /&gt;What you type is in double quotation "" .&lt;BR /&gt;&lt;BR /&gt;Make sure you have the same user account on both the client and server machines. In this example, the user is wilford .&lt;BR /&gt;&lt;BR /&gt;On the client machine, make sure there is an entry for the server machine in the .ssh/known_hosts file.&lt;BR /&gt;&lt;BR /&gt;This can be done quickly by simply ssh to the server:&lt;BR /&gt;&lt;BR /&gt;gozo&amp;gt; "ssh lei" &lt;BR /&gt;&lt;BR /&gt;If the entry is not in your known_hosts file, you will get prompted for adding this host to the list of known hosts. Answer YES .&lt;BR /&gt;&lt;BR /&gt;On the Client machine , click Generate the key :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;gozo&amp;gt; "cd ~wilford" &lt;BR /&gt;gozo&amp;gt; "ssh-keygen -t rsa" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Just click Return for the passphrase , this will generate two files:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;.ssh/id_rsa     (private key) &lt;BR /&gt;.ssh/id_rsa.pub (public key) &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On the client, copy the public key to the server:&lt;BR /&gt;&lt;BR /&gt;gozo&amp;gt; "scp .ssh/id_rsa.pub lei:gozo.rsa.pub" &lt;BR /&gt;&lt;BR /&gt;You will be prompted for the password for this user; go ahead and type it.&lt;BR /&gt;&lt;BR /&gt;On the client, make sure there is an .ssh directory on the server for this user.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;gozo&amp;gt; "ssh lei" &lt;BR /&gt;password: Input your password &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Make sure this .ssh directory exist and has 744 permissions -rwxr--râ   , otherwise create it:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lei&amp;gt; "mkdir .ssh" &lt;BR /&gt;lei&amp;gt; "chmod 744 .ssh" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On the server, copy the key on the server to the correct location and correct permissions. &lt;BR /&gt;&lt;BR /&gt;First, check for an authorized_keys file:&lt;BR /&gt;&lt;BR /&gt;lei&amp;gt; "ll .ssh" &lt;BR /&gt;&lt;BR /&gt;if the authorized_keys file does not exist, then follow step a. If the authorized_keys file exists, follow step b.:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lei&amp;gt; "cp gozo.rsa.pub .ssh/authorized_keys" &lt;BR /&gt;lei&amp;gt; "chmod 700 .ssh/authorized_keys" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;lei&amp;gt; "cat gozo.rsa.pub &amp;gt;&amp;gt; .ssh/authorized_keys" &lt;BR /&gt;&lt;BR /&gt;On the client, test as follows:&lt;BR /&gt;&lt;BR /&gt;gozo&amp;gt; "ssh lei" &lt;BR /&gt;&lt;BR /&gt;This should login without prompting for a password.&lt;BR /&gt;&lt;BR /&gt;Check the /var/adm/syslog/syslog.log on both the client and server for errors from ssh or sshd .&lt;BR /&gt;&lt;BR /&gt;Setting up the batch file for use with sftp &lt;BR /&gt;&lt;BR /&gt;Sample batch file:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cat /batchcmds    &lt;BR /&gt;!echo BEGIN    &lt;BR /&gt;cd /tmp/test    &lt;BR /&gt;mput file*.txt    &lt;BR /&gt;!echo END    &lt;BR /&gt;#      &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Executing the sftp command with the batch file:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# sftp -b /sftpcmds wilford@lei &lt;BR /&gt;&lt;BR /&gt;sftp&amp;gt; !echo BEGIN  BEGIN   &lt;BR /&gt;sftp&amp;gt; cd /tmp/test   &lt;BR /&gt;sftp&amp;gt; mget file*.txt   &lt;BR /&gt;Fetching /tmp/test/file001.txt to file001.txt   &lt;BR /&gt;Fetching /tmp/test/file002.txt to file002.txt   &lt;BR /&gt;sftp&amp;gt; !echo END   &lt;BR /&gt;END &lt;BR /&gt;&lt;BR /&gt;&lt;/BATCH-FILE&gt;</description>
      <pubDate>Mon, 14 Jun 2010 05:47:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sftp-issue-need-for-solution/m-p/4646382#M379892</guid>
      <dc:creator>Raj Briden</dc:creator>
      <dc:date>2010-06-14T05:47:11Z</dc:date>
    </item>
  </channel>
</rss>

