<?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: sshd: server refused our key in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895278#M745441</link>
    <description>Can you post the key that it generates? (dsa key) also on hp-ux, in sshd_config file do you have setting for preferred authentication??</description>
    <pubDate>Fri, 08 Apr 2005 15:34:42 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2005-04-08T15:34:42Z</dc:date>
    <item>
      <title>sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895261#M745424</link>
      <description>Scenario:&lt;BR /&gt;Installed sshd on hpux 11i system, trying to log in via sshd from a PuTTY windows box.&lt;BR /&gt;&lt;BR /&gt;Everything works OK, except sshd on the hpux machine will not go beyond asking for a password.  At the login prompt that appears on the putty box, all I get is a "server refused our key", then sshd on the hpux system asks for a password.  I enter the password, and sshd lets me in.&lt;BR /&gt;&lt;BR /&gt;I copied the public key over to ~/.ssh/authorized_keys as required.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;Z</description>
      <pubDate>Fri, 08 Apr 2005 11:43:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895261#M745424</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-08T11:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895262#M745425</link>
      <description>Post /usr/sbin/sshd -ddd from hpux. (stop exisiting sshd)Try connecting now and post.</description>
      <pubDate>Fri, 08 Apr 2005 12:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895262#M745425</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-04-08T12:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895263#M745426</link>
      <description>OK, stopped sshd, then restarted at the command line:&lt;BR /&gt;&lt;BR /&gt;Output on hpux was as follows:&lt;BR /&gt;# /opt/ssh/sbin/sshd -ddd&lt;BR /&gt;debug3: RNG is ready, skipping seeding&lt;BR /&gt;debug2: load_server_config: filename /opt/ssh/etc/sshd_config&lt;BR /&gt;debug2: load_server_config: done config len = 242&lt;BR /&gt;debug2: parse_server_config: config /opt/ssh/etc/sshd_config len 242&lt;BR /&gt;debug1: sshd version OpenSSH_3.9 [ HP-UX Secure Shell-A.03.91.002 ]&lt;BR /&gt;debug3: Not a RSA1 key file /opt/ssh/etc/ssh_host_rsa_key.&lt;BR /&gt;debug1: read PEM private key done: type RSA&lt;BR /&gt;debug1: private host key: #0 type 1 RSA&lt;BR /&gt;debug3: Not a RSA1 key file /opt/ssh/etc/ssh_host_dsa_key.&lt;BR /&gt;debug1: read PEM private key done: type DSA&lt;BR /&gt;debug1: private host key: #1 type 2 DSA&lt;BR /&gt;debug1: rexec_argv[0]='/opt/ssh/sbin/sshd'&lt;BR /&gt;debug1: rexec_argv[1]='-ddd'&lt;BR /&gt;debug2: fd 4 setting O_NONBLOCK&lt;BR /&gt;debug1: Bind to port 22 on 0.0.0.0.&lt;BR /&gt;Server listening on 0.0.0.0 port 22.&lt;BR /&gt;debug3: fd 5 is not O_NONBLOCK&lt;BR /&gt;debug1: Server will not fork when running in debugging mode.&lt;BR /&gt;debug3: send_rexec_state: entering fd = 8 config len 242&lt;BR /&gt;debug3: ssh_msg_send: type 0&lt;BR /&gt;debug3: send_rexec_state: done&lt;BR /&gt;debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8&lt;BR /&gt;&lt;BR /&gt;On the windows box, I get:&lt;BR /&gt;Using username "testuser"&lt;BR /&gt;Server refused our key&lt;BR /&gt;password:&lt;BR /&gt;&lt;BR /&gt;The PassPhrase was never requested .. I enter the password, log in, and that's it.&lt;BR /&gt;&lt;BR /&gt;Z&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Apr 2005 12:15:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895263#M745426</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-08T12:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895264#M745427</link>
      <description>putty uses openssh.  &lt;BR /&gt;Do you also have openssh on the hpux box?&lt;BR /&gt;&lt;BR /&gt;is the exported key from putty in openssh or commerical ssh format?</description>
      <pubDate>Fri, 08 Apr 2005 12:18:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895264#M745427</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2005-04-08T12:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895265#M745428</link>
      <description>The version of sshd running on hpux is in log posted in the previous reply.  It is HP-UX Secure Shell-A.03.91.002.&lt;BR /&gt;&lt;BR /&gt;Keys generated on the windows putty box were SSH2 RSA.&lt;BR /&gt;&lt;BR /&gt;I figure the solution to this problem must reside somewhere in sshd_config?  What forces sshd to request the passphrase instead of just a password??&lt;BR /&gt;&lt;BR /&gt;Z</description>
      <pubDate>Fri, 08 Apr 2005 12:23:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895265#M745428</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-08T12:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895266#M745429</link>
      <description>This is how I set up trusts for ssh.&lt;BR /&gt;&lt;BR /&gt;Edit the /opt/ssh/etc/ssh_config file, change the following keyword to the example.&lt;BR /&gt;Protocol 2,1&lt;BR /&gt;&lt;BR /&gt;Edit the /opt/ssh/etc/sshd_config file, change the following keywords or uncomment the keywords as listed below.&lt;BR /&gt;&lt;BR /&gt;Protocol 2,1&lt;BR /&gt;HostKey /opt/ssh/etc/ssh_host_key&lt;BR /&gt;HostKey /opt/ssh/etc/ssh_host_rsa_key&lt;BR /&gt;HostKey /opt/ssh/etc/ssh_host_dsa_key&lt;BR /&gt;PermitRootLogin yes&lt;BR /&gt;PubkeyAuthentication yes&lt;BR /&gt;AuthorizedKeysFile      .ssh/authorized_keys&lt;BR /&gt;RhostsAuthentication no&lt;BR /&gt;IgnoreRhosts yes&lt;BR /&gt;PermitEmptyPasswords no&lt;BR /&gt;X11Forwarding no&lt;BR /&gt;&lt;BR /&gt;Establish the root trust from master server to the root account on your server.&lt;BR /&gt;cd /roots/.ssh&lt;BR /&gt;scp master_server:/roots/.ssh/id.rsa.pub ./id.rsa.pub.master_server&lt;BR /&gt;Cat id.rsa.pub.master_server &amp;gt;&amp;gt; authorized_keys&lt;BR /&gt;&lt;BR /&gt;Test the trusted login ability of root on master server&lt;BR /&gt;root@master_server# ssh dnuxXXX&lt;BR /&gt;if the login was successful without a password the configuration is complete.&lt;BR /&gt;&lt;BR /&gt;Hope this helps &lt;BR /&gt;&lt;BR /&gt;B&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Apr 2005 13:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895266#M745429</guid>
      <dc:creator>Robert Bennett_3</dc:creator>
      <dc:date>2005-04-08T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895267#M745430</link>
      <description>Everyone:&lt;BR /&gt;&lt;BR /&gt;This has been my first post on the ITRC forums.  Many thanks to all who have responded!!&lt;BR /&gt;&lt;BR /&gt;I have applied the suggestions that have been offered so far with no luck; however, I do appreciate the online assistance.  I'm now leaning towards the problem being with the keys generated by "putty", but nonetheless feel that sshd should not have let me log in without supplying a passphrase.&lt;BR /&gt;&lt;BR /&gt;Once again, thanks everyone and I'm glad I've joined the forum!&lt;BR /&gt;Z</description>
      <pubDate>Fri, 08 Apr 2005 13:52:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895267#M745430</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-08T13:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895268#M745431</link>
      <description>When you set the key, in authorized_keys file), did you do cut and paste?? Do not do that. Generate the new keys and do a cat to put the key in authorized_keys file.</description>
      <pubDate>Fri, 08 Apr 2005 13:53:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895268#M745431</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-04-08T13:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895269#M745432</link>
      <description>I generated the keys on my windows box (using putty), and then ftp'd the public key over to my hpux machine, and put it in as ~/.ssh/public&lt;BR /&gt;&lt;BR /&gt;Then I copied ~/.ssh/public to ~/.ssh/authorized_keys, and checked all the permissions and ownership.  I tried various permissions, like 744, 644, 700, 600, etc.&lt;BR /&gt;&lt;BR /&gt;I appologize for any dumb errors here on my behalf, as I am implementing sshd for the first time.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Z</description>
      <pubDate>Fri, 08 Apr 2005 14:24:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895269#M745432</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-08T14:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895270#M745433</link>
      <description>How did you generate the keys?? Commands please.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Fri, 08 Apr 2005 14:34:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895270#M745433</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-04-08T14:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895271#M745434</link>
      <description>The keys were generated using the puttygen command on my windows box.  When you execute this in a "command prompt" window, a keys generator window pops up.&lt;BR /&gt;&lt;BR /&gt;First you select the SSH2 keys preference button, then select the generate button, then you move the mouse around to generate randomness, then select the "load keys" button, which creates a public and private key pair.&lt;BR /&gt;&lt;BR /&gt;After that, I ftp'd the public key from the windows box to my hpux machine, and placed it in /home/testuser/.ssh/public.  I then moved (used "$mv") public to authorized_keys, checked ownership and permissions, etc.&lt;BR /&gt;&lt;BR /&gt;Does this sound about right in terms of the sequence of steps?&lt;BR /&gt;&lt;BR /&gt;Z</description>
      <pubDate>Fri, 08 Apr 2005 14:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895271#M745434</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-08T14:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895272#M745435</link>
      <description>I was wondering about dsa or rsa keys?? Does it give that preference??</description>
      <pubDate>Fri, 08 Apr 2005 14:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895272#M745435</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-04-08T14:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895273#M745436</link>
      <description>I selected the "SSH2 RSA" preference.  I remember reading somewhere there was a difference between SSH2 and SSH-2 protocols, .. that in fact there was a difference, and that you had to be careful as the dash in SSH-2 was important .. just guessing here.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Z</description>
      <pubDate>Fri, 08 Apr 2005 15:06:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895273#M745436</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-08T15:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895274#M745437</link>
      <description>Do you have option of creating dsa keys?? IF yes, create and set them in authorized_keys.</description>
      <pubDate>Fri, 08 Apr 2005 15:07:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895274#M745437</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-04-08T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895275#M745438</link>
      <description>Excellent suggestion .. I'll give DSA a try, as it is an option!&lt;BR /&gt;&lt;BR /&gt;Let you know what happens in a little bit.&lt;BR /&gt;Z</description>
      <pubDate>Fri, 08 Apr 2005 15:09:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895275#M745438</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-08T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895276#M745439</link>
      <description>OK, this time I generated a key pair (public/private) and selected the "SSH2 DSA" preference.  I know its "SSH2 DSA" because the comment in the public key verifies it.&lt;BR /&gt;&lt;BR /&gt;Moved the new public key over to my HPUX server under /home/testuser/.ssh/authorized_keys and same thing ..&lt;BR /&gt;&lt;BR /&gt;When I try to connect from my windows box, I get the hpux prompts as follows:&lt;BR /&gt;&lt;BR /&gt;Using username "testuser".&lt;BR /&gt;Server refused our key&lt;BR /&gt;testuser@testsystem password:&lt;BR /&gt;&lt;BR /&gt;I enter the password, and log in successfully .. no passphrase was ever supplied or asked for.&lt;BR /&gt;&lt;BR /&gt;Z</description>
      <pubDate>Fri, 08 Apr 2005 15:20:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895276#M745439</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-08T15:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895277#M745440</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;When using puttygen, the public key file that it saves is not in a format to use in the authorized_keys file.  At the top of the puttygen window after you generate the key is a text box with the heading "Public key for pasting into OpenSSH authorized_keys file".  That is what should be put into your authorized_keys file on the HP-UX box.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Tony</description>
      <pubDate>Fri, 08 Apr 2005 15:20:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895277#M745440</guid>
      <dc:creator>Tony Contratto</dc:creator>
      <dc:date>2005-04-08T15:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895278#M745441</link>
      <description>Can you post the key that it generates? (dsa key) also on hp-ux, in sshd_config file do you have setting for preferred authentication??</description>
      <pubDate>Fri, 08 Apr 2005 15:34:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895278#M745441</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-04-08T15:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895279#M745442</link>
      <description>Tony -&lt;BR /&gt;&lt;BR /&gt;That nailed it !!  Good call !!!&lt;BR /&gt;In fact, RAC and others hinted at this earlier as to the cut-n-paste.  Just a stupid mistake on my part.&lt;BR /&gt;&lt;BR /&gt;Well, its 4:30pm EST over here, so I'm headed out to HappyHour .. thanks everyone so much.&lt;BR /&gt;&lt;BR /&gt;To recap, for those using PUTTY, when generating key pairs, make sure you cut-n-paste from the top pop-up puttygen window and double check your paste.&lt;BR /&gt;&lt;BR /&gt;Z&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Apr 2005 15:38:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895279#M745442</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-08T15:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: sshd: server refused our key</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895280#M745443</link>
      <description>Original Problem:&lt;BR /&gt;sshd does not prompt for passphrase, and generates "server refused our key" error while trying to log in.&lt;BR /&gt;&lt;BR /&gt;Resolution:&lt;BR /&gt;The authorized_keys file did not contain the proper key.  The puttygen key pair generator was used incorrectly.  The authorized_keys file key should have been cut-n-paste'd from the top screen in the generator .. instead, the public key was used incorrectly.</description>
      <pubDate>Mon, 11 Apr 2005 08:53:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-server-refused-our-key/m-p/4895280#M745443</guid>
      <dc:creator>Mark Zurl</dc:creator>
      <dc:date>2005-04-11T08:53:03Z</dc:date>
    </item>
  </channel>
</rss>

