setting ssh-add environment variables on Windows

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm running the OpenSSH for Windows client without a full cygwin
environment. Has anyone figured out a way to do a system-wide set of the
SSH_AUTH_SOCKET and SSH_AGENT_PID environment variables under Windows? What
would be nice is if you could run ssh-agent from a login script, get
prompted once for your identiy passphrase, and then have these variables be
set for the duration of your session and available from each cmd window.
Seems impossible to do without a full cygwin install and access to a bash
shell, etc. Someone handy with DOS debug could probably figure out a clever
way to make this happen.


Re: setting ssh-add environment variables on Windows


Quoted text here. Click to load it

I haven't tried the openssh/windows client.  I use putty on my
OS-challenged systems.  That comes with a pagent command which
caches the private key much like the ssh-agent does on real operating

If you can't find a similar program in the openssh client, putty
can be found at: /



Senior UNIX Admin
O'Leary Computer Enterprises (w) 630-904-6098 (c) 630-248-2749

Site Timeline