Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion for alternative method to run ssh-pageant #62

Open
gene-pavlovsky opened this issue Dec 11, 2021 · 0 comments
Open

Suggestion for alternative method to run ssh-pageant #62

gene-pavlovsky opened this issue Dec 11, 2021 · 0 comments

Comments

@gene-pavlovsky
Copy link

gene-pavlovsky commented Dec 11, 2021

Using the README-recommended way to run ssh-pageant (via bash_profile), I was running into some problems.
I run Cygwin bash under a multi-tab console manager called ConEmu, and when I was exiting the shell, the tab wouldn't close, because the ssh-pageant process was still running in the background. This was rather annoying.
Additionally, I was not able to use ssh or git when running those commands under cmd (or Far manager's internal command interpreter).

I've come up with a different way to start and use ssh-pageant, which solved all of these problems.

In short, a logon script is set up via local group policy editor, this logon script runs ssh-pageant, and sets the SSH_AUTH_SOCK user environment variable. Subsequent processes (ConEmu, Far, Cygwin bash, cmd etc) get this SSH_AUTH_SOCK in their environment, and don't need to run ssh-pagent -r ....

I would suggest improving the README by suggesting the above approach and/or mentioning the possible issues with the bash_profile approach.

@gene-pavlovsky gene-pavlovsky changed the title Suggestion for alternative methods to run ssh-pageant Suggestion for alternative method to run ssh-pageant Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant