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
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