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

New Post: Help with private key

$
0
0

I use ssh-keygen -t rsa to generate my key on my Linux server. I then use:
Dim keyFile = New PrivateKeyFile(File.OpenRead("c:\temp\keyfile"), "phrase")
Using client As New SshClient(strServerIP, 22, strAccount, keyFile)

        client.Connect()

I keep getting an error like my password is bad. If I just replace the keyfile and put the password there it works fine. What am I missing to get the private key to work?

Thanks Chad


Viewing all articles
Browse latest Browse all 1729

Trending Articles



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