When executing a basic "df" command I am getting "Response reading timed out". Here's my code...
// create client, connect and log in
Ssh client = new Ssh();
client.Connect("***.***.***.***");
client.Login("********", "********");
// run the 'df' command to retrieve disk usage info
string diskFree = client.RunCommand("df");
// display the output
Console.WriteLine("Disk usage info:");
Console.WriteLine(diskFree);
Here's the verbose log...
2012-08-14 09:25:12.908 DEBUG Ssh(1)[1] SSH: Authentication successful.
2012-08-14 09:25:12.918 VERBOSE Ssh(1)[1] SSH: Sending packet SSH_MSG_CHANNEL_OPEN (24 bytes).
0000 |5A-00-00-00-07-73-65-73 73-69-6F-6E-00-00-00-00| Z....session....
0010 |00-02-00-00-00-00-40-00 | ......@.
2012-08-14 09:25:12.918 VERBOSE Ssh(1)[1] SSH: Received packet SSH_MSG_CHANNEL_OPEN_CONFIRMATION (17 bytes).
0000 |5B-00-00-00-00-00-00-00 00-00-02-00-00-00-00-06| [...............
0010 |20 |
2012-08-14 09:25:12.918 DEBUG Ssh(1)[1] SSH: Executing command 'df'.
2012-08-14 09:25:12.918 VERBOSE Ssh(1)[1] SSH: Sending packet SSH_MSG_CHANNEL_REQUEST (20 bytes).
0000 |62-00-00-00-00-00-00-00 04-65-78-65-63-01-00-00| b........exec...
0010 |00-02-64-66 | ..df
2012-08-14 09:25:12.918 VERBOSE Ssh(1)[1] SSH: Received packet SSH_MSG_CHANNEL_SUCCESS (5 bytes).
0000 |63-00-00-00-00 | c....
It seems to work ok running from Puty...
[1]z001gtwy02# df
File(s) at A:/
PRIMARY <dir> 5-31-2012 17:29
CONFIG <dir> 5-31-2012 17:31
ETC <dir> 5-31-2012 17:31
AUDLOG <dir> 6-15-2012 15:20
SECONDAR <dir> 6-27-2012 19:28
0 file(s) 0 bytes
5 subdirectory(s)
5820416 bytes free
[2]z001gtwy02#
Any thoughts?
Thanks
-Tom