Hi

Im writing a small utill for my self basicly to see if it can be done, but ive ran into a small problem, Im using Plink for a ssh connection whilst i can successfuly connect to the remote box with some thing like this:

VB Code:
  1. Dim Location as String
  2. Dim commands as String
  3. Dim username as String
  4. Dim serverip as String
  5. Dim password as String
  6.  
  7. username = txtUserName.Text
  8. serverip = txtServer.Text
  9. Location = "C:\plink"
  10. commands = " -ssh -pw " + password & username + "@" + serverip
  11. password = txtPassword.text
  12.  
  13. Shell Location + commands

This connects and sends password with no problems how ever i choose to hide the command prompt as i dont know how to implement it into my app (yet and may not want to use the cli at all) now that the connection is working i would like away of reading whats comming from the remote host plus the ability to send data to the remote host too.

The problem is i cannot seem to find away of reading or sending data to and from the reomte server. I did think about using winsock.getdata and senddata but im not too sure if this would work and if it did how to get it to do that with the connection already working, could some one please help me to see a way of been able to read and send data Please.

Thanks for the time

Ixl2