if we want to add our private ssh key we have to write in e.g powershell
ssh-add ~\.ssh\id_rsa
but is there possibility to check, what key is currently added to agent ?
I can't find that command on the internet.
if we want to add our private ssh key we have to write in e.g powershell
ssh-add ~\.ssh\id_rsa
but is there possibility to check, what key is currently added to agent ?
I can't find that command on the internet.
GitHub has a documentation for Windows explaining how to launch the ssh-agent automatically from a git bash session (with the .bashrc
)
Once launched, a ssh-add -L
will list the active keys.
From there, ssh-add -l/-L
will list the register keys fingerprint, pr keys content.
(And ssh-add
is included in Git for Windows)
You can compare a fingerprint from ssh-add -l
with ssh-keygen -lf /path/to/ssh/key
in order to determine which key filename was added to the agent.
(and ssh-keygen
is also included with Git for Windows)