login about faq

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

asked Jul 31 '12 at 11:32

sleeke's gravatar image

sleeke
1112


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.

link

answered Jul 31 '12 at 16:23

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

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

link

answered Aug 01 '12 at 09:28

sleeke's gravatar image

sleeke
1112

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×89
×23
×11
×3
×1

Asked: Jul 31 '12 at 11:32

Seen: 2,630 times

Last updated: Aug 01 '12 at 09:28

powered by OSQA