Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If all you have is a public key from a user in PuTTY-style format, you can convert it to standard openssh format like so:</p> <pre><code>ssh-keygen -i -f keyfile.pub &gt; newkeyfile.pub </code></pre> <h3>References</h3> <ul> <li>Source: <s><a href="http://www.treslervania.com/node/408" rel="noreferrer">http://www.treslervania.com/node/408</a></s></li> <li>Mirror: <a href="https://web.archive.org/web/20120414040727/http://www.treslervania.com/node/408" rel="noreferrer">https://web.archive.org/web/20120414040727/http://www.treslervania.com/node/408</a>.</li> </ul> <h3>Copy of article</h3> <blockquote> <p>I keep forgetting this so I'm gonna write it here. Non-geeks, just keep walking.</p> <p>The most common way to make a key on Windows is using Putty/Puttygen. Puttygen provides a neat utility to convert a linux private key to Putty format. However, what isn't addressed is that when you save the public key using puttygen it won't work on a linux server. Windows puts some data in different areas and adds line breaks.</p> <p>The Solution: When you get to the public key screen in creating your key pair in puttygen, copy the public key and paste it into a text file with the extension .pub. You will save you sysadmin hours of frustration reading posts like this.</p> <p>HOWEVER, sysadmins, you invariably get the wonky key file that throws no error message in the auth log except, no key found, trying password; even though everyone else's keys are working fine, and you've sent this key back to the user 15 times.</p> <pre><code>ssh-keygen -i -f keyfile.pub &gt; newkeyfile.pub </code></pre> <p>Should convert an existing puttygen public key to OpenSSH format.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload