Archived Forum Post

Index of archived forum posts

Question:

After update to chilkatssh.dll version 9.3.1.0

Aug 01 '12 at 09:28

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

 ExecuteSSHCommand : 7 : ChilkatLog:
   SendReqPty:
     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
    genRead_11:
      Timeout waiting to read socket or accept connection
      timeoutMs: 10000
      SSH readRawPacket: Socket read timed out.
    --genRead_11
    Failed.
  --SendReqPty
--ChilkatLog

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 ?

Cheers


Answer

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.


Answer

Hi,

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

Cheers

Stu