-
Notifications
You must be signed in to change notification settings - Fork 2k
Integrate SSH Agent or PuTTY Agent
mhirsch76 edited this page Sep 14, 2021
·
4 revisions
You can use your personal SSH keys in Cmder adding them to SSH-Agent or PuTTY Agent. You might also be interested in integrating Cygwin in Cmder rather than apply this configuration.
To enable SSH-Agent edit config/user_profile.cmd
adding these lines:
# Loads SSH-Agent
call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd"
# Remove the following remark and add your SSH private key path
# ssh-add C:\Users\John\Documents\Keys\this-is-my-key
Please note that this configuration takes for granted that PuTTY Agent is executed prior opening Cmder (e.g. at Session Logon) and that it already has the desired keys loaded. To enable PuTTY Agent edit config/user-profile.cmd
adding these lines:
:: Setting up SSH to PuTTY Pageant
set SSH_AUTH_SOCK=%USERPROFILE%\ssh-pageant.socket
ssh-pageant -r -a %SSH_AUTH_SOCK% > NUL