GITLAB: problems with ssh

I just joined gitlab, formally used GitHub, still there. I created a new project in gitlab and I try to click, but I get permission denied (public key).

This is the list of files that I have in the ssh folder on my system:

  • github_rsa,
  • github_rsa.pub,
  • known_hosts.

When I checked how to generate the ssh key, I saw on gitlab that I first had to type %userprofile%\.ssh\id_rsa.pubin the command line to check if I have it, and I typed it exactly like %userprofile%\.ssh\id_rsa.pubthat, and I got it

C:\Users\slodd' is not recognized as an internal or external command operable program or batch file. 

I do not know if I typed it incorrectly by typing it accurately, because I actually just copied and entered it on the command line.
I used to not work with ssh keys. I am using Windows 10 system.

+4
1

, ssh, gitlab:

ssh-keygen -t rsa -f "%USERPROFILE%\.ssh\gitlab_rsa" -C "key for GitLab access" -q -P ""

, <git>/usr/bin %PATH% ssh-keygen .

%USERPROFILE%/.ssh/config.

#
# Main gitlab.com server
#
Host gitlab.com
RSAAuthentication yes
IdentityFile 'C:\Users\slodd\.ssh\gitlab_rsa
User git
+2

Source: https://habr.com/ru/post/1662745/


All Articles