sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
1.15k stars 112 forks source link

[Feature] Start ssh agent automatically #239

Closed Noisyfox closed 2 months ago

Noisyfox commented 3 months ago

Currently I have to start ssh agent and add my password-protected ssh key manually, otherwise I will get issue like image

I'm using Windows and I tried both openssh and putty based ssh and they all have the same issue.

Any plan to start the agent automatically when app starts/prior to any git command, like what SourceTree does?

love-linger commented 3 months ago

Here's my solution for this issue. Install offical git with Use external OpenSSH turn on. This will use Window's built-in OpenSSH client. image After that, go to Services and start the built-in OpenSSH Authentication Agent and switch the Startup type to Automatic. image

AleksandrLiakhavetsEPAM commented 3 months ago

And what is the next action? It is just stuck in this state image Thanks!

love-linger commented 3 months ago

And what is the next action? It is just stuck in this state image Thanks!

you can manually run one of these fetch command:

to see why it stuck there

AleksandrLiakhavetsEPAM commented 3 months ago

Did it - it's stuck in a step when i need to enter passphrase for rsa key. Just nothing happening. For example visual studio shows image

love-linger commented 3 months ago

Did it - it's stuck in a step when i need to enter passphrase for rsa key. Just nothing happening. For example visual studio shows image

Thank you very much. I'm using a private key without passphrase, and did not notice that. I'll try to fix it.

love-linger commented 3 months ago

Add support for SSH_ASKPASS

image

You can test it from this build: https://github.com/sourcegit-scm/sourcegit/actions/runs/9841154876

Noisyfox commented 2 months ago

image I'm getting this error when running the latest developer branch.

love-linger commented 2 months ago

image I'm getting this error when running the latest developer branch.

This seems a little strange. From the point of view of the path, you are using this app on Windows platform, but why it uses exec to create the child process?

BTW, I'm trying to fix this issue on Linux/macOS platform

love-linger commented 2 months ago

I've fixed this issue. You can try it on the latest develop branch

Noisyfox commented 2 months ago

Cool that does solve the problem.

AleksandrLiakhavetsEPAM commented 2 months ago

Thank you - it works super good!