Author: Pathiya007 | Posted on: 9/27/2010 10:17:52 AM | Views : 1649

I am trying to automatically run ssh  commands to linux server from my local machine, usng asp.net page.
I have created a key pair using puttygen and ask network administrator to authenticate key in server. then i try this code in my page.
 
Dim p As New Process Dim si As New ProcessStartInfo Dim read As System.IO.StreamReader = Nothing si.Arguments = "plink -ssh connectremote -l testuser" si.FileName = "C:/my stuff/plink.exe" si.CreateNoWindow = True p.StartInfo = si Try p.Start() read = p.StandardOutput lblMsg.Text = read.ReadToEnd() Catch ex As Exception lblMsg.Text = ex.ToString() End Try
 
this code set to button click and once click the buttin it prompt console and I cannot do any thing.
how should i solve thi ...

Go to the complete details ...