Alex Rivera | Logout

How can I test my ssh-keys locally without a server

Asked 2012-02-27T14:20:23.057
25

I want to test my keys in ~/.ssh. I do not have sshd running (Git-Bash@Windows does not provide it). I'd like to test if I still remember the passphrase for my keys.

I found these answers [1], [2], but they do not work for me.

Is there an easy way to verify my ssh keys without an ssh server?

Edit
Report

1 Answer

0

Using SSHNet and a bunch of code you can try to open your private key and check if provided password is correct.

PrivateKeyFile key = new PrivateKeyFile(keypath, passphrase);

Above code fails if passphrase is wrong.

answered 2012-02-27T14:22:46.710

Your Answer