📅  最后修改于: 2022-03-11 14:50:02.051000             🧑  作者: Mango
brew openssl
openssl genpkey -algorithm RSA -aes-256-cbc -outform PEM -out private_key.pem -pkeyopt rsa_keygen_bits:2048
chmod 0400 private_key.pem
ssh-keygen -e -f private_key.pem > public_key.pem