Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: PrivateKeyAuthentication from Stream

$
0
0
That should do the trick so there is no need for a temp-File.
var privatekeybytes = new MemoryStream(Encoding.Default.GetBytes(SshPrivateKeyString));
PrivateKeyFile privatekey = new PrivateKeyFile(privatekeybytes);
If you want super hyper secure. Use SecureString to store your PrivateKeyString.

Viewing all articles
Browse latest Browse all 1729

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>