<?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: scp sking for password! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260006#M731623</link>
    <description>Hi Aneesh, I'm OK thanks...&lt;BR /&gt;&lt;BR /&gt;I done exactly what you told me, bu still ahking for a password.&lt;BR /&gt;&lt;BR /&gt;Siva,&lt;BR /&gt;I tried DSA and now I generate RSA but still the same.&lt;BR /&gt;&lt;BR /&gt;Ahmed&lt;BR /&gt;</description>
    <pubDate>Mon, 25 Oct 2010 05:38:41 GMT</pubDate>
    <dc:creator>Ahmed_58</dc:creator>
    <dc:date>2010-10-25T05:38:41Z</dc:date>
    <item>
      <title>scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260000#M731617</link>
      <description>I generate ssh key for scp and copy it to the other system as "authorized_keys", but still prompt for password!. the permission looks OK see below for file permission and the log of scp run.&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;drwx------   2 dbitf bc 1024 Oct 25 08:26 .ssh&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;-rw-r--r--   1 dbitf bc 604 Oct 24 11:01 authorized_keys&lt;BR /&gt;-rw-------   1 dbitf bc 668 Oct 14 13:51 id_dsa&lt;BR /&gt;-rw-r--r--   1 dbitf bc 603 Oct 14 13:51 id_dsa.pub&lt;BR /&gt;&lt;BR /&gt;-------------------------------------------&lt;BR /&gt;$ scp -v dbitf@bat-bc1:/usr3/live/edw_extracts/test /home/dbitf&lt;BR /&gt;Executing: program /opt/ssh/bin/ssh host bat-bc1, user dbitf, command scp -v -f /usr3/live/edw_extracts/test&lt;BR /&gt;OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8l 5 Nov 2009&lt;BR /&gt;HP-UX Secure Shell-A.05.30.007, HP-UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug1: Connecting to bat-bc1 [10.3.4.16] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: identity file /home/dbitf/.ssh/identity type -1&lt;BR /&gt;debug1: identity file /home/dbitf/.ssh/id_rsa type -1&lt;BR /&gt;debug1: identity file /home/dbitf/.ssh/id_dsa type 2&lt;BR /&gt;debug1: Remote protocol version 1.99, remote software version OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5&lt;BR /&gt;debug1: match: OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5 pat OpenSSH*&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug1: AUTH STATE IS 0&lt;BR /&gt;debug1: REQUESTED ENC.NAME is 'aes128-ctr'&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-ctr hmac-md5 none&lt;BR /&gt;debug1: REQUESTED ENC.NAME is 'aes128-ctr'&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-ctr 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 'bat-bc1' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /home/dbitf/.ssh/known_hosts:9&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;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;---------------------------------------------------------------------------&lt;BR /&gt;  This system is a private property of BAHRAIN TELECOMMUNICATION.&lt;BR /&gt;  Do not attempt to login unless you are an authorized user.&lt;BR /&gt;  Any authorized or unauthorized access or use may be monitored and&lt;BR /&gt;  can result in criminal or civil prosecution under applicable law.&lt;BR /&gt;---------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /home/dbitf/.ssh/identity&lt;BR /&gt;debug1: Trying private key: /home/dbitf/.ssh/id_rsa&lt;BR /&gt;debug1: Offering public key: /home/dbitf/.ssh/id_dsa&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: keyboard-interactive&lt;BR /&gt;Password:&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Regards,&lt;BR /&gt;Ahmed&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Oct 2010 04:44:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260000#M731617</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-10-25T04:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260001#M731618</link>
      <description>It seems like a permission issue.&lt;BR /&gt;ie, user of one server (dbitf@bat-bc1) doesn't have a access to the another user's home directory of another server (/home/dbitf).&lt;BR /&gt;&lt;BR /&gt;Try to copy the file to someother location where 777 permissions are set.&lt;BR /&gt;HTH:)</description>
      <pubDate>Mon, 25 Oct 2010 05:10:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260001#M731618</guid>
      <dc:creator>SivaOX</dc:creator>
      <dc:date>2010-10-25T05:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260002#M731619</link>
      <description>Dear SivaOX,&lt;BR /&gt;still the same, the directory has 777 permission, not only this the user id on both servers is the same.&lt;BR /&gt;&lt;BR /&gt;Ahmed</description>
      <pubDate>Mon, 25 Oct 2010 05:18:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260002#M731619</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-10-25T05:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260003#M731620</link>
      <description>I am using RSA, and found no issues.&lt;BR /&gt;&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /oracle/.ssh/identity&lt;BR /&gt;debug1: Offering public key: /oracle/.ssh/id_rsa&lt;BR /&gt;debug1: Server accepts key: pkalg ssh-rsa blen 277&lt;BR /&gt;debug1: read PEM private key done: type RSA&lt;BR /&gt;debug1: Authentication succeeded (publickey).&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Oct 2010 05:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260003#M731620</guid>
      <dc:creator>SivaOX</dc:creator>
      <dc:date>2010-10-25T05:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260004#M731621</link>
      <description>Hi Ahmed,&lt;BR /&gt;&lt;BR /&gt;How are you ?.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem seems you are trying with dsa key in your authorized_keys.&lt;BR /&gt;&lt;BR /&gt;You may generate rsa key and update in authorized_keys of remote server.&lt;BR /&gt;&lt;BR /&gt;Please try the following:&lt;BR /&gt;ServerA and ServerB both should run the ssh daemons.To allow ServerA to SSH to ServerB without password&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Login to the source server (server A)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ssh-keygen -t rsa&lt;BR /&gt;&lt;BR /&gt;accpet all defaults sttings.&lt;BR /&gt;&lt;BR /&gt;This generates two files id_rsa.pub and id_rsa&lt;BR /&gt;&lt;BR /&gt;Now,id_rsa.pub needs to be appended to the authorized_keys file on ServerB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rename this file to some other name , for identification.&lt;BR /&gt;&lt;BR /&gt;#mv id_rsa.pub &lt;SERVERA&gt;_rsa.pub&lt;BR /&gt;&lt;BR /&gt;copy this file to serverB.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# scp &lt;SERVERA&gt;_rsa.pub ServerB:~/.ssh/&lt;SERVERA&gt;_rsa.pub&lt;BR /&gt;&lt;BR /&gt;Login to server B&lt;BR /&gt;&lt;BR /&gt;move to the .ssh folder under your home directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Take a backup of the file authorized_keys&lt;BR /&gt;&lt;BR /&gt;#cp -p authorized_keys authorized_keys.backup&lt;BR /&gt;&lt;BR /&gt;# cat &lt;SERVERA&gt;_rsa.pub &amp;gt;&amp;gt; authorized_keys&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now try login from server A to B &lt;BR /&gt;&lt;BR /&gt;Note: If you are implementing it first time there will not be any authorized_keys file. So you can simply rename the file id_rsa.pub &lt;SERVERA&gt;_rsa.pub to authorized_keys&lt;BR /&gt;Repeat this process starting from server B to A to allow passwordless login from server B to A&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Aneesh&lt;/SERVERA&gt;&lt;/SERVERA&gt;&lt;/SERVERA&gt;&lt;/SERVERA&gt;&lt;/SERVERA&gt;</description>
      <pubDate>Mon, 25 Oct 2010 05:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260004#M731621</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2010-10-25T05:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260005#M731622</link>
      <description>Hi Ahmed,&lt;BR /&gt;Can you please verify, are these both servers using same algorithm? (RSA/DSA)</description>
      <pubDate>Mon, 25 Oct 2010 05:26:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260005#M731622</guid>
      <dc:creator>SivaOX</dc:creator>
      <dc:date>2010-10-25T05:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260006#M731623</link>
      <description>Hi Aneesh, I'm OK thanks...&lt;BR /&gt;&lt;BR /&gt;I done exactly what you told me, bu still ahking for a password.&lt;BR /&gt;&lt;BR /&gt;Siva,&lt;BR /&gt;I tried DSA and now I generate RSA but still the same.&lt;BR /&gt;&lt;BR /&gt;Ahmed&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Oct 2010 05:38:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260006#M731623</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-10-25T05:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260007#M731624</link>
      <description>Hello Ahmed,&lt;BR /&gt;&lt;BR /&gt;What do you get on syslog (on bat-bc1?)&lt;BR /&gt;&lt;BR /&gt;Try to do a scp (or ssh the same result...) then&lt;BR /&gt;&lt;BR /&gt;cat /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Mon, 25 Oct 2010 05:49:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260007#M731624</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-10-25T05:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260008#M731625</link>
      <description>Dear Horia,&lt;BR /&gt;in syslog I'm getting:&lt;BR /&gt;&lt;BR /&gt;bat-bc1 sshd[9449]: Authentication refused: bad ownership or modes for directory /usr3/live/edw_extracts&lt;BR /&gt;&lt;BR /&gt;-------------------------------------&lt;BR /&gt;&lt;BR /&gt;the permission is :&lt;BR /&gt;drwxrwxrwx   5 bc  bc  21504 Oct 25 09:22 edw_extracts&lt;BR /&gt;&lt;BR /&gt;Ahmed</description>
      <pubDate>Mon, 25 Oct 2010 05:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260008#M731625</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-10-25T05:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260009#M731626</link>
      <description>&amp;gt;Authentication refused: bad ownership or modes for directory /usr3/live/edw_extracts&lt;BR /&gt;&lt;BR /&gt;Looks like dbitf has a problem with this directory (or the parent directory).&lt;BR /&gt;&lt;BR /&gt;Log in as dbitf in the bat-bc1 machine and try to copy the file "test" to the home base:&lt;BR /&gt;&lt;BR /&gt;$cp /usr3/live/edw_extracts/test /home/dbitf&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Mon, 25 Oct 2010 06:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260009#M731626</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-10-25T06:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260010#M731627</link>
      <description>Dear Horia,&lt;BR /&gt;&lt;BR /&gt;it is working with manuall copy to the same machine.&lt;BR /&gt;&lt;BR /&gt;$ cp /usr3/live/edw_extracts/test /home/dbitf&lt;BR /&gt;$&lt;BR /&gt;$ cd /home/dbitf&lt;BR /&gt;$ ll&lt;BR /&gt;-rwxr-xr-x  1 dbitf bc  0 Oct 25 10:11 test&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Oct 2010 06:14:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260010#M731627</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-10-25T06:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260011#M731628</link>
      <description>&lt;BR /&gt;perform the following commands on the user account you are trying to setup&lt;BR /&gt;chmod go-w ~/&lt;BR /&gt;chmod 700 ~/.ssh&lt;BR /&gt;chmod 600 ~/.ssh/authorized_keys</description>
      <pubDate>Mon, 25 Oct 2010 06:19:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260011#M731628</guid>
      <dc:creator>ani007</dc:creator>
      <dc:date>2010-10-25T06:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260012#M731629</link>
      <description>Horia,&lt;BR /&gt;It is working now....I need to change both the owner and the mod to:&lt;BR /&gt;&lt;BR /&gt;bat-bc1:/usr3/live&amp;gt;chmod 755 edw_extracts&lt;BR /&gt;bat-bc1:/usr3/live&amp;gt;chown dbitf edw_extracts&lt;BR /&gt;&lt;BR /&gt;Thanks to all,..&lt;BR /&gt;Ahmed&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Oct 2010 06:19:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260012#M731629</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-10-25T06:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: scp sking for password!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260013#M731630</link>
      <description>An advice to all for using SCP allways look at the syslog.&lt;BR /&gt;&lt;BR /&gt;thanks to all, specially HORIA u r HERO.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ahmed</description>
      <pubDate>Mon, 25 Oct 2010 06:25:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scp-sking-for-password/m-p/5260013#M731630</guid>
      <dc:creator>Ahmed_58</dc:creator>
      <dc:date>2010-10-25T06:25:32Z</dc:date>
    </item>
  </channel>
</rss>

