How to GITLab + Windows + SSH

Hi!

How to configure GoLand to work with ssh authenticated gitlab repositories?

My keys are in c:\Users\myuser\.ssh\my-private-key

GoLand 2018.2.3
Build #GO-182.4505.32, built on September 20, 2018
Windows 10 10.0

 

0
3 comments

Hi!

GoLand doesn't require any special configuring for Git. If it works in the command prompt, it should work in GoLand without configuration. What kind of problems are you experiencing?

0

Hi Zolotov!

 

I can't make it work - even in powershell - , because there's no way ( that I know ) of point the correct privateKey.

The only way I'm commiting is using git bash.

At the end, it aways says "the file doesn't exist"

It seems that I'm having a trouble in between Windows and SSH/GIT. Nothing to do with GoLand.

These are my story:

- https://docs.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=vsts

- https://github.com/PowerShell/Win32-OpenSSH/issues/1133

- https://stackoverflow.com/questions/26266778/ssh-config-file-for-windows-git

https://stackoverflow.com/questions/17846529/could-not-open-a-connection-to-your-authentication-agent [ solved! ]

 

 

0

> because there's no way ( that I know ) of point the correct privateKey.

Why doesn't .ssh/config in the user home folder work? Just be sure to use the full Windows-style path to the key in there.

  

> At the end, it always says "the file doesn't exist"

Please provide more details. What exact steps do you do and when does the error occur?

 

> The only way I'm commiting is using git bash.

Do you mean that commit does not work in PowerShell? Commit is a local operation and is not using ssh. SSH connection is needed for pushing and pulling your changes. 

0

Please sign in to leave a comment.