Generate Publickey Again With Rsa Private Key

RSA
public key generation
Git repo sync
deploying public keys
duplicate prevention
This article explains the process of generating a new public key using an RSA private key. It is important when deploying public keys to avoid duplicates, particularly when utilizing the Git repo sync tool.
Published

September 25, 2022


not possible. use personal access token as password instead.

cause the deploy public key does not allow duplicate public key, causing trouble for us to use the git repo sync tool.

PRIVATE_KEY_PATH=/Users/jamesbrown/.notable/id_rsa_original_backup
PUBKEY_PATH=/Users/jamesbrown/.notable/id_rsa.pub2
ssh-keygen -y -f $PRIVATE_KEY_PATH > $PUBKEY_PATH