DEV Community

palgoel for Itsopensource

Posted on • Originally published at itsopensource.com

12 2

Conversion of SSH2 private key to openSSH format using PuTTYgen

Problem Statement

While working on mercurial(Version Control System), we need to generate different public/private keys for windows & Linux, which leads to have multiple keys for single user.

Solution

If we want to access mercurial through Linux with your same key as Windows, then instead of generating a new rsa key pair ,we can reuse same public/private key pair to access mercurial from linux.
Hence same repository you can access via windows or linux without creating separate public/private key pair for both.

STEPS :

Pre-requisite: There must a key pair existing in SSH2 format to access mercurial`

`

  1. Open the PuTTY Key Generator
  2. On the menu bar, click "File" -> "Load private key"
  3. Select your .ppk file
  4. On the menu bar, click "Conversions" -> "Export OpenSSH key"
  5. Save the file as (without an extension) e.g. mercurial_rsa `

You are all done. Same private key on windows can be reused(with above steps) with Linux.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs