What would be the easiest way to do this where there isn't any commerical products involved. I currently have my code setup like this and it isn't working out. At the moment UNIXCOMPUTERNAME and UNIXPASSWORD is hardcoded into the program just for my personal testing purposes.
This is for a asp.net web page and this is located in the codebehind file. I either want to get this code to work or I want to find a SSH library. I am using Visual Studio Web Developer Express, so it seems that is also limiting me.
Dim unixVariables(2) As String
nameLabel.Text = FQDN.Text
Dim Proc As New System.Diagnostics.Process
Proc.StartInfo = New ProcessStartInfo("C:\plink.exe")
Proc.StartInfo.Arguments = "-pw " & UNIXPASSWORD & " " & UNIXUSERNAME & "@" & UNIXCOMPUTERNAME & " ls > output.txt"
Proc.StartInfo.RedirectStandardInput = True
Proc.StartInfo.RedirectStandardOutput = True
Proc.StartInfo.UseShellExecute = False
Proc.Start()
' Pause for script to run
System.Threading.Thread.Sleep(100)
Proc.Close()