Skip to content

Suggestion for alternative method to run ssh-pageant #62

Description

@gene-pavlovsky

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions