Idea integration Gitlab using SSH for password-free login

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.