Hi,
I have a web application that configures an SFTP connection, and requires the user to insert the (server's) public key, which we save in the database instead of in a file. But when trying to add a known host to my connection, the only options available to me are:
conn.KnownHosts.AddKnownHost(..) which requires a filename (which I'm trying to avoid), or
conn.KnownHosts.AddHostKey(..) which requires a parameter of type EnterpriseDT.Net.Ssh.Routrek.PKI.PublicKey.
Is there any way of converting a string to this type, so that I can add it directly to the connection without using a file?
Thanks!