Access error using ssh (Git on Windows Server WorkStation - GitLab on RedHat Local Server)


#1

Before, I know that exists similiar questions, but I tested all and not found a solution. I’ve this situation

I’ve mounted GitLab in a RedHat Local Server. The SSH key(public and private) has been created, this:

[soporte@devsrv01 .ssh]$ ls -la
total 20
drwx------ 2 soporte soporte 4096 Mar 30 17:02 .
drwx------ 5 soporte soporte 4096 Mar 30 16:51 …
-rw------- 1 soporte soporte 3311 Mar 31 08:08 id_rsa
-rw-r–r-- 1 soporte soporte 751 Mar 31 08:08 id_rsa.pub
-rw-r–r-- 1 soporte soporte 801 Mar 31 07:54 known_hosts
In Local Server (Red Hat), GitLab runs on: 172.20.20.10:9090 I’ve my account in GitLab, and the ssh key associated with it I created one GitLab group: myGroup, into it I’ve five projects (repositories)

SSH works on Red Hat, I Tested (Introducing passPhrase and userLinux)

[soporte@devsrv01 .ssh]$ ssh -T git@172.20.20.10
Enter passphrase for key ‘/home/soporte/.ssh/id_rsa’:
Enter passphrase for key ‘/home/soporte/.ssh/id_rsa’:
Enter passphrase for key ‘/home/soporte/.ssh/id_rsa’:
git@172.20.20.10’s password:
Welcome to GitLab, Diego!
All is fine here,

I’ve initialized the repository and add remote repository (WorkStation):

myUser@EQ-MACHINE MINGW64 /c/xampp/htdocs/test
git init
git remote add origin git@172.20.20.10:myGroup/projectOne.git
The problem it’s when I try do a pull from my workstation (Windows Server) Git shows me this:

git pull origin master
git@172.20.20.10’s password:
Permission denied, please try again.
git@172.20.20.10’s password:
Permission denied, please try again.
git@172.20.20.10’s password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Doing pull with http works… but doesn’t with ssh

I test with the password from: git, soporte and the passphrase, but doesn’t work What I doing wrong?

Thanks so much for help