SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

Allow signed keys

Open robertkentish opened this issue 5 years ago • 2 comments

PR as per issue #479. PRoposal to support public certs for RSA signatures as in the following manner.

var keyFile = new PrivateKeyFile(@"C:\temp\ssh_keys\id_rsa", "xxxx"); var certFile = new PublicKeyCertFile(@"C:\temp\ssh_keys\id_rsa-cert.pub"); var authMethod = new PrivateKeyCertAuthenticationMethod("user", keyFile, certFile); var connectionInfo = new ConnectionInfo("192.168.1.1", "user", authMethod);

using (var client = new SshClient(connectionInfo)) { client.Connect(); }

robertkentish avatar Oct 17 '19 04:10 robertkentish

@robertkentish I did an initial sweep of your changes. Still need to dive a little deeper though. I wonder if - when complete - we should consider shipping this as a separate package (under the SSH.NET unbrella, or not).

drieseng avatar Jan 09 '21 13:01 drieseng

@robertkentish PR needs refreshing.

WojciechNagorski avatar Aug 25 '23 11:08 WojciechNagorski