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

New Post: PrivateKeyAuthentication from Stream

$
0
0
Yupp, I meant with that code you won't need a temp-file
var webClient = new WebClient();
string myKey = webClient.DownloadString("https://10.1.1.45/pk.php?pk=joes_pk");
var privatekeybytes = new MemoryStream(Encoding.Default.GetBytes(myKey));
PrivateKeyFile privatekey = new PrivateKeyFile(privatekeybytes);
Sorry, english is not my native language.
I'm better in speaking with code ;)

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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