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

New Post: Problem to connect to Google Cloud Compute

$
0
0
Hi,

I am trying to connect to Google Cloud Compute using this library.
I have generated ssh keys using putty and it works with putty but when I try to use this code in my VB program I get the error "An attempt was made to access a socket in a way forbidden by its access permissions". Does anybody have an idea what can be wrong?

Dim pfk As Renci.SshNet.PrivateKeyFile
pfk = New PrivateKeyFile("key3.ssh")
Dim sshClient As New Renci.SshNet.SshClient(host, 22, username, {pfk})
Dim cmd As Renci.SshNet.SshCommand
Using sshClient
sshClient.Connect()
End Using

Thanks,
Peter

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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