create public key from private
chmod 400 ~/.ssh/id_rsa
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
create public key from private
chmod 400 ~/.ssh/id_rsa
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
Generating Public and Private Key
# the directory where the keys are to be stored
# in this case we are using the current file directory
path = Path(__file__).absolute().parent
# initialize the encrypter
encryption = Encryption(path, name=('public_key.pem', 'private1.pem'))
# generates both private and public keys
encryption.generate_keys()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us