Right, this lib just handles Filepaths/Filestreams.
Your Use-Case is... let's call it... interesting ;)
It's not the object you are passing, thats a string, nothing special about it.
But it's an URL File.Open() cannot handle.
You have to get the file/filestream/datastream on your own to your system.
E.g.: http://stackoverflow.com/questions/3460503/how-to-read-a-file-from-a-uri-using-streamreader
See Source:
https://sshnet.codeplex.com/SourceControl/latest#Renci.SshClient/Renci.SshNet/PrivateKeyFile.cs
And recommended for reading:
https://sshnet.codeplex.com/documentation
Your Use-Case is... let's call it... interesting ;)
It's not the object you are passing, thats a string, nothing special about it.
But it's an URL File.Open() cannot handle.
You have to get the file/filestream/datastream on your own to your system.
E.g.: http://stackoverflow.com/questions/3460503/how-to-read-a-file-from-a-uri-using-streamreader
See Source:
https://sshnet.codeplex.com/SourceControl/latest#Renci.SshClient/Renci.SshNet/PrivateKeyFile.cs
And recommended for reading:
https://sshnet.codeplex.com/documentation