My Oracle Support Banner

How To Re-Create a SSH Public Key Using the Private Key (Doc ID 2973319.1)

Last updated on SEPTEMBER 11, 2023

Applies to:

Solaris Operating System - Version 10 and later
Information in this document applies to any platform.

Goal

 How to verify the integrity or re-create a public key used for authentication by ssh, when you still have the private ssh key

 

It is quite common that users configure authentication keys to connect to remote systems using ssh.
The process of creating a pair of authentication keys and use the public key on a remote system is quite straight-forward. Check Doc ID 1006101.1 for more information.
Sometimes a user's public key can become corrupted because the user can overwrite it by mistake.
This document explains how it is possible to re-create a local copy of the public key using the private key.

Note that if the private key is overwritten, lost or corrupted, one should re-create a new pair of keys, and append the new public key to the "keyrings" on the remote servers.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.