Implementing git password free login with Linux

Programmer light 2022-02-13 07:58:58 阅读数:680

implementing git password free login

1、linux operation

① stay linux Input in

ssh-keygen -t rsa

② Prompt information

Enter file in which to save the key (/home/ User directory /.ssh/id_rsa): direct enter No account set

Enter passphrase (empty for no passphrase): direct enter No password

Enter same passphrase again: direct enter No password

Your identification has been saved in /home/ User directory /.ssh/id_rsa.
Your public key has been saved in /home/ User directory /.ssh/id_rsa.pub.

③ Both privacy and privacy have been created successfully , In the above Directory

cat /home/ User directory /.ssh/id_rsa.pub

Copy the displayed content

4、gitlab operation

① Log in gitlab Address

② The head in the upper right corner shows , Click on the drop-down box , choice setting

③ And then switch to ssh keys menu

 

④ Paste in the text box linux Copied public key

⑤ Click on add key Button to save successfully

 

 

copyright:author[Programmer light],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130758556680.html