Skip to content

Commit

Permalink
Added pagent ssh auth support (#1391)
Browse files Browse the repository at this point in the history
(and some comments on the user-profile.cmd file)

Inspired by the comments from #193 and my personal need to use pageant instead of OpenSSH authentication agents (which is more Window user-friendly), I have used this approach which works as expected.

Keeping the spirit of the current scripts, I left it disabled, and with some comments explaining what they all do.
  • Loading branch information
AlphaGit authored and Stanzilla committed Jul 24, 2017
1 parent 46d5936 commit 4243c5c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vendor/init.bat
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,14 @@ if exist "%CMDER_ROOT%\config\user-profile.cmd" (
echo :: use this file to run your own startup commands
echo :: use in front of the command to prevent printing the command
echo.
echo :: uncomment this to have the ssh agent load when cmder starts
echo :: call "%%GIT_INSTALL_ROOT%%/cmd/start-ssh-agent.cmd"
echo.
echo :: uncomment this next two lines to use pageant as the ssh authentication agent
echo :: SET SSH_AUTH_SOCK=/tmp/.ssh-pageant-auth-sock
echo :: call "%%GIT_INSTALL_ROOT%%/cmd/start-ssh-pageant.cmd"
echo.
echo :: you can add your plugins to the cmder path like so
echo :: set "PATH=%%CMDER_ROOT%%\vendor\whatever;%%PATH%%"
echo.
) > "%CMDER_ROOT%\config\user-profile.cmd"
Expand Down

0 comments on commit 4243c5c

Please sign in to comment.