Connection dropped with WodSSH & KSH with set -o e - WeOnlyDo Discussion board

Connection dropped with WodSSH & KSH with set -o e (wodSSH / wodSSH.NET)

by dblock, Wednesday, April 23, 2008, 01:54 (5818 days ago)

We have a client who insists on using set -o emacs in their default shell, which breaks with our code that uses WodSSH.

With KSH, if you have set -o emacs or gmacs, the keys are control-p for previous command and control-n for next command. In vi you hit esc once and then k or n will move you backward or forward through the commands. For emacs and gmacs, use control-p or control-n each time.

If I try to connect, I get the banner, then I get dropped right away. Here's a useful extirp from the logs.

Setting connection protocol to SSH AUTO.
Setting the Blocking property to true.
Setting host name to sunny2.
Setting login user name to sybksh.
Setting connection authentication type to AUTHTYPE_PASSWORD_ONLY .
Setting port number to 22.
Setting rows to 50.
Setting columns to 512.
Setting timeout to 180.
Setting StripANSI to true.
Trying to establish a connection.
State changed from Disconnected from server to Connecting to server .
State changed from Connecting to server to Connected to server - idle .
State changed from Connected to server - idle to Receiving data from server .
State changed from Receiving data from server to Connected to server - idle .
Bytes received = 130
Connection succeeded.
Session prompt not specified. Taking the timeout approach.
Waiting for prompt to timeout.
State changed from Connected to server - idle to Receiving data from server .
State changed from Receiving data from server to Connected to server - idle .
Bytes received = 200
State changed from Connected to server - idle to Receiving data from server .
State changed from Receiving data from server to Connected to server - idle .
Bytes received = 202
m_pSshCom->WaitFor returned 0x800A05B4.
Peek data : Last login: Tue Apr 22 19:33:27 2008 from ddoubro.nycapt3

Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
$
Login banner received
State changed from Connected to server - idle to Sending data to server .
State changed from Sending data to server to Connected to server - idle .
Waiting for WaitFor to timeout.
State changed from Connected to server - idle to Receiving data from server .
State changed from Receiving data from server to Connected to server - idle .
Bytes received = 4
State changed from Connected to server - idle to Disconnected from server .
m_pSshCom->WaitFor returned 0x800A2746.

Works like a charm without set -o emacs.

Any ideas?

Thx
dB.

Re: Connection dropped with WodSSH & KSH with set

by wodDamir, Wednesday, April 23, 2008, 09:12 (5818 days ago) @ dblock

Hi dB,

What version of wodSSH are you using? Can you please check what does Version property return?

Also, did you try any other client? Does putty work?

Regards,
Damba

Re: Connection dropped with WodSSH & KSH with set

by dblock, Wednesday, April 23, 2008, 15:22 (5818 days ago) @ wodDamir

Sorry, I should have included this earlier.

WodSSH: 2.6.0.50
OS: SunOS sunny2 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-100
ksh: Version M-11/16/88i SunOS 5.8 Generic 110662-20 Apr 2005

This is really a high priority for me. We're a paying customer (AppSecInc).

Thx
dB.

Re: Connection dropped with WodSSH & KSH with set

by wodDamir, Wednesday, April 23, 2008, 15:33 (5818 days ago) @ dblock

dB,

Is there any chance we could connect to that server? Is that possible? If yes, you can send us login information to techsupport@weonlydo.com

Also, did you try to connect there with emacs on using any other client?

Regards,
Damba

Re: Connection dropped with WodSSH & KSH with set

by dblock, Wednesday, April 23, 2008, 15:35 (5818 days ago) @ wodDamir

dB,

Is there any chance we could connect to that server? Is that possible? If yes, you can send us login information to techsupport@weonlydo.com

Also, did you try to connect there with emacs on using any other client?

Regards,
Damba

The server is on an intranet, it will be pretty hard to arrange you to connect. We can do a webex and you can drive if you want. Seriously, it took me half an hour to repro, I just took a plain solaris box, stuck KSH on it, created an account that defaults to KSH and added set -o emacs to .profile.

Email me at ddoubrovkine at appsecinc dot com.