A, until normal use, the sudden appearance Permission denied, please try again, retry a lot of times, the last to use the stupid way, forget the password, reset a new password, and then rebuilt ssh, solve success
Two, gitLab provided a method SSH
1. Check whether there is a secret key
$cd ~/.ssh
2. Generate keys
$ssh-keygen -t rsa -C "[email protected]"
3. Check the SSH
$cat id_rsa.pub
4. Locate the settings
5. Click SSH keys
6. Enter ssh, done.