Connection dropped with WodSSH & KSH with set -o e (wodSSH / wodSSH.NET)
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.