Authenticate ssh tunnel with private key with no passphrase
Hi,
to avoid the input of the passphrase when using a private key file I generated a private key without a passphrase. When I now set the raw settings with
_sessionOptions.AddRawSettings("TunnelPublicKeyFile", _privateKeyPathNoPassPhrase);
and try to connect I get the error
"unable to use key file 'nopassphrase.ppk' (unable to open file).
If I start pageant and register the no passphrase key before trying to connect, connection succeeds.
How can I connect without using pageant?
Regards
moeck
to avoid the input of the passphrase when using a private key file I generated a private key without a passphrase. When I now set the raw settings with
_sessionOptions.AddRawSettings("TunnelPublicKeyFile", _privateKeyPathNoPassPhrase);
and try to connect I get the error
"unable to use key file 'nopassphrase.ppk' (unable to open file).
If I start pageant and register the no passphrase key before trying to connect, connection succeeds.
How can I connect without using pageant?
Regards
moeck