gitlab configuration under windows to generate ssh key

Git-1.9.5-preview20141217 
1. Install git, open "Git Bash" from the program directory 
2. Type the command: ssh-keygen -t rsa -C "[email protected]
  "[email protected]" is the gitlab account 
3. Remind you to enter the name of the key, such as id_rsa 
4. Create two files under C:\Users\Administrator\.ssh: id_rsa and id_rsa.pub 
5. Open the id_rsa.pub file with Notepad, copy the content, Go to the ssh key management page on the gitlab.com website, add a new public key, choose a name, and paste the content you just copied. 
6. ^_^ OK, it 

should be noted that the key file generated in step 2 is in the root directory of the current user, and these two files must be placed in the ".ssh" directory of the current user directory to take effect. 
In Windows, you can only create folders starting with "." on the command line. The command is mkdir .ssh

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325229163&siteId=291194637
Recommended