1. See if you already have an SSH key: CD ~/.ssh
If there is no key then there will be no such folder, there is a backup to delete
2. Survival key:
$ssh-keygen-t rsa-c "[Email protected]"
You need to change the email address to your own email address, and then return to the default value, as this key is not used for military purposes, so there is no need to set a password.
If all goes well, you can find the. SSH directory in the user's home directory, there are Id_rsa and id_rsa.pub two files, these two are SSH key key pair, Id_rsa is the private key, can not be leaked out, Id_rsa.pub is the public key, can be assured to tell anyone.
Ssh-rsa asdsdasdasd/dogq/zkwmfhni2ugxilc/oxyqnkf8h8k0ss/coj+sozetmcjyf0uhsdk6emceaocvz+ tvoc9cskzoxa3mizilvigw53ptv+dcenibv8yigasdasdde2i0rpkmfiplhasd/md6rh49w0j4lhq2bia7xqv6m9spauzbglgfpr/ HZGPKXJKJGA7LZGMFNUC4JNZOKFJLWRFW7EWOB9MHQD3FF9BWM8SYNZO7LXTXXNZZ8INUAOTAPFRIITENQC/RCANNIAECAGQFJ3WWKY7UBXH [ Email protected]
Mac Build Ssh-key