<?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 SSH Keys in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213952#M326544</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have quite a number of servers (HP-UX, Solaris &amp;amp; Linux) which I access via a Linux hopping station which I can ssh straight into without the task of having to enter a password. &lt;BR /&gt;&lt;BR /&gt;Today I built a new server and experienced difficulty ssh'ing onto it from my hopping station. I used the same key as I had used on all the other servers. So I generated a new key from my hopping station and placed it in the authorized_keys file of my new server i.e.&lt;BR /&gt;&lt;BR /&gt;# ssh-keygen -t dsa -N ""&lt;BR /&gt;&lt;BR /&gt;Some time after this I noticed that any other server I try to ssh onto prompts me for the password. Can someone confirm if this is what has happened and if there is a quick way of rectifying this?&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;D</description>
    <pubDate>Tue, 10 Jun 2008 13:47:15 GMT</pubDate>
    <dc:creator>Duffs</dc:creator>
    <dc:date>2008-06-10T13:47:15Z</dc:date>
    <item>
      <title>SSH Keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213952#M326544</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have quite a number of servers (HP-UX, Solaris &amp;amp; Linux) which I access via a Linux hopping station which I can ssh straight into without the task of having to enter a password. &lt;BR /&gt;&lt;BR /&gt;Today I built a new server and experienced difficulty ssh'ing onto it from my hopping station. I used the same key as I had used on all the other servers. So I generated a new key from my hopping station and placed it in the authorized_keys file of my new server i.e.&lt;BR /&gt;&lt;BR /&gt;# ssh-keygen -t dsa -N ""&lt;BR /&gt;&lt;BR /&gt;Some time after this I noticed that any other server I try to ssh onto prompts me for the password. Can someone confirm if this is what has happened and if there is a quick way of rectifying this?&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;D</description>
      <pubDate>Tue, 10 Jun 2008 13:47:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213952#M326544</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2008-06-10T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213953#M326545</link>
      <description>Duffs,&lt;BR /&gt;&lt;BR /&gt;You might be able to find what you are looking for on this post:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1226880" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1226880&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Tue, 10 Jun 2008 13:58:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213953#M326545</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2008-06-10T13:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213954#M326546</link>
      <description>from what you described, it sounds like you have an expired password on all the machines that is giving you a password prompt.&lt;BR /&gt;&lt;BR /&gt;to me this is a common occurance when I unleash a new set of servers where I usually copy the user id's from the old machine to the new machine, along with the ssh keys. Since we have a 90 day password lifetime, at the end of the 90 day period (from the date of the source system's password change) all of these servers will deny no-passphrase login attempts from ssh connection.&lt;BR /&gt;&lt;BR /&gt;if you have a telnet connection, most probably it will work and let you login interactively and let you change your password as you login.&lt;BR /&gt;&lt;BR /&gt;Just my guess. Take it with a grain of salt and hope it helps.</description>
      <pubDate>Tue, 10 Jun 2008 14:46:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213954#M326546</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2008-06-10T14:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213955#M326547</link>
      <description>So, as I read it, things worked as desired&lt;BR /&gt;with all the old servers.  Then you&lt;BR /&gt;"generated a new key" on your Linux system.&lt;BR /&gt;And now, things don't work as before on the&lt;BR /&gt;old servers.&lt;BR /&gt;&lt;BR /&gt;It sounds to me as if you changed the key&lt;BR /&gt;files on your Linux system, and you didn't&lt;BR /&gt;tell your old servers about the new keys.&lt;BR /&gt;Why _wouldn't_ this break things on the old&lt;BR /&gt;servers?&lt;BR /&gt;&lt;BR /&gt;Why didn't you copy the old key file(s) to&lt;BR /&gt;the new server?</description>
      <pubDate>Tue, 10 Jun 2008 17:18:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213955#M326547</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-06-10T17:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213956#M326548</link>
      <description>Usually, when you create a pair of RSA keys by ssh-keygen and omit the -f option/file argument then you will be asked to confirm the filename (without extension) where the utility should place the keys.&lt;BR /&gt;You may inadvertently have overwritten your previous key pair thus by having confirmed with CR.&lt;BR /&gt;That would be bad because you now would have to distribute the new public key to all your other remote targets (if you haven't got a backup).&lt;BR /&gt;Remember to either use the -i option with your ssh client to specify which identity file (i.e. private key) to use for your current ssh target.&lt;BR /&gt;Or, to ease typing/remembering, edit in your the file $HOME/.ssh/config and use "Host" stanzas along with the "IdentityFile" directive whose value has to be the path to the private key required to login on that host.&lt;BR /&gt;Please, have a look at man ssh_config for details and explanation of a myriad of other viable ssh client options.</description>
      <pubDate>Wed, 11 Jun 2008 05:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213956#M326548</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-06-11T05:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213957#M326549</link>
      <description>Thanks for the feedback lads.&lt;BR /&gt;&lt;BR /&gt;Steven, "Why didn't you copy the old key file(s) to the new server?" - I did but this is where I encountered the issue as it didn't work (I'll get back to this in a second). Anyway, my main pitfall was I didn't realise that the new key gen would overwrite the current keys; lesson learned eh?&lt;BR /&gt;&lt;BR /&gt;Once I recovered the public and private keys from backup, problem resolved.&lt;BR /&gt;&lt;BR /&gt;So back to my original issue - I copied the old key file from my hopping station to the newly build server (/root/.ssh/authorized_keys) but get the following error:&lt;BR /&gt;&lt;BR /&gt;IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!&lt;BR /&gt;Someone could be eavesdropping on you right now (man-in-the-middle attack)!&lt;BR /&gt;It is also possible that the RSA host key has just been changed.&lt;BR /&gt;The fingerprint for the RSA key sent by the remote host is&lt;BR /&gt;1b:69:cf:74:82:0c:68:12:e2:54:ec:6d:95:c9:8a:fb.&lt;BR /&gt;Please contact your system administrator.&lt;BR /&gt;&lt;BR /&gt;I have removed the entry on the known_hosts file on the hopping station but still no joy, any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;D.</description>
      <pubDate>Wed, 11 Jun 2008 07:15:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213957#M326549</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2008-06-11T07:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213958#M326550</link>
      <description>Probably there is a second occurrence of a host key with an offending fingerprint in your client's known_hosts?&lt;BR /&gt;&lt;BR /&gt;Better than just deleting the line you should compare the fingerprints.&lt;BR /&gt;If you still get access to the remote host (or ask the admin there) you could there issue e.g.&lt;BR /&gt;&lt;BR /&gt;ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key&lt;BR /&gt;&lt;BR /&gt;Then compare with the offending entry in your file.</description>
      <pubDate>Wed, 11 Jun 2008 12:22:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213958#M326550</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2008-06-11T12:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: SSH Keys</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213959#M326551</link>
      <description>&amp;gt; [...] I copied the old key file [...]&lt;BR /&gt;&lt;BR /&gt;Exactly _which_ key files did you copy,&lt;BR /&gt;whence and whither?  You should probably not&lt;BR /&gt;be copying host key files around, only your&lt;BR /&gt;own key files.  You _make_ new host key files&lt;BR /&gt;on a new server.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] the RSA host key has just [...]&lt;BR /&gt;&lt;BR /&gt;This is a complaint about a server's host&lt;BR /&gt;key data, not about your personal key data.</description>
      <pubDate>Wed, 11 Jun 2008 15:11:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-keys/m-p/4213959#M326551</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-06-11T15:11:41Z</dc:date>
    </item>
  </channel>
</rss>

