Imports System.IO Imports ComponentPro.IO Imports ComponentPro.Net Module Module1 Sub Main() ' Create a new class instance. Dim client As New Sftp() ' Connect to the SFTP server. client.Connect("XXX.XXX.XXX.XXX", 22) ' Authenticate user with a private key. client.Authenticate("USER_NAME", "C:\private.key", "password") ' Do something here... Dim fi As New FileStream("C:\image.jpg", FileMode.Open) c
