Home

André John de Souza

This is a simple VB.Net wrapper around SharpSSH that allows connection between MS-Office products (or any .Net development). It is not complete but permits simple SSH connection.

Currently, my company manages several installations with CentOS, my intention was to create a DLL that would allow me to query basic information from these installations directly into an Excel spreadsheet. Example of usage;

Public Sub sshUse()
    Dim ssh As New SSHWrapper

    Call ssh.InitConnection("xxx.xxx.xxx.xxx", "myuser", "mypass")
    ssh.Prompt = "$"
    Debug.Print ssh.Excute("")
    Debug.Print ssh.Excute("ls -l")
    Debug.Print ssh.Excute("")
    Debug.Print ssh.Excute("exit")
End Sub

At the moment our DLL supports the following;

Properties

  1. Host - Returns/Sets host
  2. Password - Sets password
  3. Prompt - Returns/Sets the prompt, so buffer knows where last command was given
  4. User - Returns/Sets user

Function

  1. Execute("command") - Execute shell command
  2. InitConnection("remoteHost", "remoteUser", "remotePass") - Connects to remote host

Future Development

Improve command set by wrapping more methods from SharpSSH.

Project Admins:


MongoDB Logo MongoDB