There are many articles on the Internet that introduce SSH-free login, the steps are as follows:
1. Generate SSH Key
Ssh-keygen-t rsa-c "[Email protected]"
By default, the Id_rsa and id_rsa.pub two files are generated under the corresponding path (/your_home_path), at which point the terminal displays:
Generating public/private RSA key pair. Enter file in which to save the key (/YOUR_HOME_PATH/.SSH/ID_RSA):
Continuous carriage return, you may also enter a password, password is your power-on password, you can not lose
At this point, enter the command:ls-al ~/.ssh will appear id_rsa.pub and id_dsa.pub two files, and then copied to the sticker board:
Pbcopy < ~/.ssh/id_rsa.pub
2. Add SSH key to Gitlab
Open Gitlab, login, find the left column has a?? button, click the "Add SSH Key" button to add, paste the already acquired SSH key to "key", the bottom of the title can be taken casually, click to join the project, so that the local and server-side connections.
"??" has been replaced with "SSH Key" in profile setting
Note: The ID_RSA key pair that was previously generated may already exist in step 1 and you do not want to use them, you want to regenerate the pair, you need to name the other names, such as
At this point the computer by default is Id_rsa, you need to add your custom files to SSH configuration, Ssh-add ~/.ssh/git_rsa
Configure Gitlab password-free login in idea
You need to set the SSH executable under Setting->git to native, if you choose Built-in, you need to enter a password
Idea integration Gitlab using SSH for password-free login