Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Fix Server Refused Our Key in PuTTY SSH

June 29, 2024
in Blog, PuTTY
0
ADVERTISEMENT

Table of Contents

Server Refused Our Key in PuTTY SSH

In this post, how to fix the below error when trying to connect to a Linux system using PuTTY with private key authentication.

OBt1cvvOBf7mXgKhSfT8wsNqIkOPdwHkQRJz2MXo4mloIKD3rXXJg6BCOxyf

To fix it, let’s SSH to the Linux system using password authentication. Then check the public authorized keys using the below command.

cat ~/.ssh/authorized_keys

As you can see, the public key is OpenSSH format instead of PuTTY format.

LwNvIOQBuHSyAMoLbpRYPYY9kDW3AWL6uWC8mleXf2jOk1NlaAuCua15PlwM

1. First, open the installation location of PuTTY.

C:\Program Files\PuTTY
xT789W2IX6bqEddZBFHJPqlhIptqBiFxE9tQYvPGGYwwnpLdo5WQADIfEzqS

2. Lauch puttygen.exe to open PuTTY Key Generator.

i5RYe6tBBJydGbnJCJnF3lAI6YJ9jkppm8DnLTvopXKUaqAhyV7jgmU9fBTe

If you’re running the portable version of PuTTY, you can download PuTTYGen from the below link.

PuTTYGen: https://the.earth.li/~sgtatham/putty/latest/w64/puttygen.exe

3. Navigate to File | Load private key to open the privatekey (*.ppk).

hcnlusSkiPBf5x9pRYY603Zv9FmDWilloX0Ycra8ZQ7LAuyoIt8dwkuB8KrT

4. Load the private key that you use for authentication.

HvW5jow5ZxB7nOipdG0AVDnqizu8N4M6d4BNoiiymIiXeCAwAbrG8Mxf6VzQ

5. Once the key is loaded, you will see the public key for authentication. Let’s copy it.

7OllQsmvm1NE6Kh34FJ6SmMr6E1AuSNQvNaym2hJvq9U58Rq9VsGfnWdUuza

6. Now, from the SSS session, remove the public key authentication file using the below command.

rm ~/.ssh/authorized_keys
MFewZRncZvNUgemQujQShV2iCsASn0Gb7kaSWRzqYxxm3sf1lJSpeYtFztsi

7. Recreate the public key authentication and paste the string that you copied from the PuTTY Key Generator.

nano ~/.ssh/authorized_keys
wdQ8ugne03SxZKRYNGsKl7Pev9uBTfgzShZqqOxbQhLnOZc13aVJMODTzw6q

8. Save the file, then check again with the command below.

cat ~/.ssh/authorized_keys
9TVZ9cW9T9xGmrcpX0BT0hTeiY6SZpEtgX4vB6Yov9sa2IeYytWXrNTtP4Pf

Finally, close current SSH session authenticated using plain text then connect with key-based authentication to veriy it works.

SlXi6qKC68Cv6c9R1SVYNbXo0yE46ryDWdRdnyp4XMFFn4UmXsCpb6LlrdBJ
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

How to SSH Login Using PuTTY without Typing Username

Next Post

How to Hide SSH Welcome Message on Ubuntu Linux

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory