This project is read-only.

Any Basic example for beginner to download?

Dec 12, 2012 at 9:29 AM


It was a long time since I did program in VB6 and I have just program a Little i VB.NET


I was looking to find a way to run a script that I have on a debian server from a VB.NET Project.


It just going to run it, I do not need to see any result more then it say it was ok.


I have find some example code on this Place but it is more then just copy and paste :)


I have download the Renci.SshNet.dll and add it to my Project. ("Add>Add Existing Item")


Is that any zip file that have a basic Project that I can try see if I can use this in my Project and understand what more I have to do. I guess I have to add some more line in the top but I have no idea what?



Dec 12, 2012 at 11:20 AM


Short example in VB.Net 

- Create new  Console program
- Add reference : browse to DLL  ( I did not add DLL as existing item )
- Type this in module1.vb


 Module Module1

    Sub Main()
        Dim sclient As New Renci.SshNet.SshClient("MySystem", "MyUser", "MyPasswd")
        Dim s As String

        If sclient.IsConnected Then
            s = scmd.Execute("show version")
        End If

    End Sub

End Module


Dec 12, 2012 at 1:52 PM

Thank you alot


with some of you code and that I have to "Add reference : browse to DLL  ( I did not add DLL as existing item )" did make my code work :)