Archived Forum Post

Index of archived forum posts


After update to chilkatssh.dll version

Aug 01 '12 at 09:28

I have recently upgraded to version and now when i try and execute a ssh remote shell and set the terminal type I get the below error :

 ExecuteSSHCommand : 7 : ChilkatLog:
     DllDate: Apr 17 2012
     UnlockPrefix: IBSCOUSSH
     Username: VPC-DEVELOPMENT:XPMUser
     Architecture: Little Endian; 32-bit
     Language: ActiveX
     SshVersion: SSH-1.99-OpenSSH_5.2p1+sftpfilecontrol-v1.3-hpn13v5
     termEnvVar: dumb
     channel: 0
    Sent PTY request
      Timeout waiting to read socket or accept connection
      timeoutMs: 10000
      SSH readRawPacket: Socket read timed out.

The code the generate the error is below :

termType = "dumb" termType = "vt100" widthInChars = 120 heightInChars = 40 ' Use 0 for pixWidth and pixHeight when the dimensions ' are set in number-of-chars. pixWidth = 0 pixHeight = 0

success = objssh.SendReqPty(channelNum, termType, widthInChars, heightInChars, pixWidth, pixHeight) If (success <> 1) Then ts.WriteLine "ExecuteSSHCommand : 7 : " & objssh.LastErrorText Exit Function End If

Why has this happened ?



I think the version upgrade is a coincidence. The LastErrorText indicates that the SSH server's response is getting blocked by something external, or it's taking longer than 10 seconds.



Thanks for your response.

I set the below in code and it all seems to be working again ok.

ConnectTimeoutMs IdleTimeoutMs

I also set the below, but think this is the default anyhow.

ReadTimeoutMs = 0