KpyM Telnet/SSH Server - Forum
Connect problem with zaTunnel from my WM6 Device
Mathue Connect problem with zaTunnel from my WM6 Device
 
Hi,

i am using the ssh server togehter with portable putty (kitty) for my full satisfaction. For that reason i registerd your software - to forward your support and development.

Unfortunately - now - i have a problem to connect from my WM6 Device. Iam using zaTunnel to create a ssh tunnel. (also checked PocketPutty and putty - no help). But after the inital connect and the passwort verifcation is done - the connection is thrown down from the ssh server.

To get some detailed Information about the reason - i swichted the trace and logleven to full (0). Additional i increased the timeout values to much higher values.

The problem seems happening during logon process. And the operation is: KSocketDup::SendSocket( 148, kts92.117.18.141_1922 ){

This are the log during the problem
-------------------------------------------
2868 : 7092 2010- 7- 4 23:44:30 896 : 0: KTS connected to 92.117.18.141:1922

4560 : 4456 2010- 7- 4 23:44:31 474 : 0: session.exe started

4560 : 4456 2010- 7- 4 23:44:31 578 : 0: connected to 92.117.18.141:1922

4560 : 4456 2010- 7- 4 23:44:32 604 : 0: ssh initialized

4560 : 4456 2010- 7- 4 23:44:38 337 : 0: login accepted: [ (removed) ]

4560 : 4456 2010- 7- 4 23:45: 8 361 : 0: can't complete login

4560 : 4456 2010- 7- 4 23:45: 8 362 : 0: ssh info: Timeout on read (select()) after 30 seconds

and the tracefile
-----------------------------------------
2868 : 7092 2010- 7- 4 23:44:30 884 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 885 :183: KSocket::KSocket( 148 ){

2868 : 7092 2010- 7- 4 23:44:30 886 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 886 :183: KSocket::GetConnectionPort( ){

2868 : 7092 2010- 7- 4 23:44:30 887 : 0: s = 1922

2868 : 7092 2010- 7- 4 23:44:30 887 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 888 :183: KSocket::GetConnectionIP( ){

2868 : 7092 2010- 7- 4 23:44:30 889 : 0: s = 92.117.18.141

2868 : 7092 2010- 7- 4 23:44:30 889 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 890 :183: KTS connected to 92.117.18.141:1922

2868 : 7092 2010- 7- 4 23:44:30 891 :183: KSocket::GetConnectionPort( ){

2868 : 7092 2010- 7- 4 23:44:30 892 : 0: s = 1922

2868 : 7092 2010- 7- 4 23:44:30 893 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 893 :183: KSocket::GetConnectionIP( ){

2868 : 7092 2010- 7- 4 23:44:30 894 : 0: s = 92.117.18.141

2868 : 7092 2010- 7- 4 23:44:30 895 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 896 :183: KSocket::GetConnectionIP( ){

2868 : 7092 2010- 7- 4 23:44:30 897 : 0: s = 92.117.18.141

2868 : 7092 2010- 7- 4 23:44:30 898 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 898 :183: KIPBan::IsBanned( 92.117.18.141 ){

2868 : 7092 2010- 7- 4 23:44:30 899 :183: KIPBan::FindIPConnection( 92.117.18.141 ){

2868 : 7092 2010- 7- 4 23:44:30 919 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 921 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 922 :183: KTermSessions::Count( );{

2868 : 7092 2010- 7- 4 23:44:30 923 :183: KTermSessions::Active( 4868 ){

2868 : 7092 2010- 7- 4 23:44:30 923 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 924 :183: count = 0

2868 : 7092 2010- 7- 4 23:44:30 924 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 925 :183: KSocket::GetConnectionPort( ){

2868 : 7092 2010- 7- 4 23:44:30 926 : 0: s = 1922

2868 : 7092 2010- 7- 4 23:44:30 926 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 927 :183: KSocket::GetConnectionIP( ){

2868 : 7092 2010- 7- 4 23:44:30 927 : 0: s = 92.117.18.141

2868 : 7092 2010- 7- 4 23:44:30 928 : 0: }

2868 : 7092 2010- 7- 4 23:44:30 929 :183: CreateProcess( shlex.exe "session.exe.lnk" " -ppid:2868 -ip:92.117.18.141 -port:1922 -ssh:1" )

2868 : 7092 2010- 7- 4 23:44:31 232 :1813: KSocket::GetConnectionPort( ){

2868 : 7092 2010- 7- 4 23:44:31 233 : 0: s = 1922

2868 : 7092 2010- 7- 4 23:44:31 238 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 238 :183: KSocket::GetConnectionIP( ){

2868 : 7092 2010- 7- 4 23:44:31 239 : 0: s = 92.117.18.141

2868 : 7092 2010- 7- 4 23:44:31 240 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 240 :183: KSocketDup::SendSocket( 148, kts92.117.18.141_1922 ){

2868 : 7092 2010- 7- 4 23:44:31 241 :183: KPipe::KPipe( ){

2868 : 7092 2010- 7- 4 23:44:31 241 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 242 :183: KPipe::Connect( kts92.117.18.141_1922, 30 ){

2868 : 7092 2010- 7- 4 23:44:31 243 :183: KPipe::Connect( kts92.117.18.141_1922 ){

2868 : 7092 2010- 7- 4 23:44:31 244 : 2: KPipe::Connect( ) : err m_hWritePipe

2868 : 7092 2010- 7- 4 23:44:31 244 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 345 :183: KPipe::Connect( kts92.117.18.141_1922 ){

2868 : 7092 2010- 7- 4 23:44:31 346 : 2: KPipe::Connect( ) : err m_hWritePipe

2868 : 7092 2010- 7- 4 23:44:31 347 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 447 :183: KPipe::Connect( kts92.117.18.141_1922 ){

2868 : 7092 2010- 7- 4 23:44:31 448 : 2: KPipe::Connect( ) : err m_hWritePipe

2868 : 7092 2010- 7- 4 23:44:31 449 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 552 :183: KPipe::Connect( kts92.117.18.141_1922 ){

2868 : 7092 2010- 7- 4 23:44:31 557 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 559 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 562 :183: KPipe::Read( ){

2868 : 7092 2010- 7- 4 23:44:31 563 :183: KPipe::Read iLen = 4 dwRead = 4

2868 : 7092 2010- 7- 4 23:44:31 564 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 565 :183: pid = 4560

2868 : 7092 2010- 7- 4 23:44:31 566 : 0: KPipe::Write( 372 ){

2868 : 7092 2010- 7- 4 23:44:31 568 :183: length = 372

2868 : 7092 2010- 7- 4 23:44:31 569 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 570 :183: KPipe::Read( ){

2868 : 7092 2010- 7- 4 23:44:31 571 :233: ReadFile( ) : err 233

2868 : 7092 2010- 7- 4 23:44:31 571 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 572 :183: KPipe::Close( );{

2868 : 7092 2010- 7- 4 23:44:31 573 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 574 :183: KPipe::~KPipe( ){

2868 : 7092 2010- 7- 4 23:44:31 575 :183: KPipe::Close( );{

2868 : 7092 2010- 7- 4 23:44:31 576 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 577 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 578 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 579 :183: KTermSessions::Add( 4560 );{

2868 : 7092 2010- 7- 4 23:44:31 580 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 581 :183: KSocket::Close( 0 ){

2868 : 7092 2010- 7- 4 23:44:31 582 : 0: }

2868 : 7092 2010- 7- 4 23:44:31 582 :183: KSocket::Accept( ){

---------------------------------------

After th 30 second timeout the connection is broken down - an onto the client a erromessage "not connected" appears.

I used the client software - before i changed to your ssh server with the copyssh - and Openssh. But under windows 7 none of this server a running correct - at my installation. Your soft was easy to configure and works perfect with kitty. So - i want to use your software -(as before unter xp with oter ssh server) with my wm6 rdp client over a ssh tunnel.

Do you have any hints for me.

regards.

matthias


Kroum Grigorov
 
> can't complete login
> ssh info: Timeout on read (select()) after 30 seconds

the "can't complete login" message tells that you are logged in but the ssh session was not created. Since you are using it with ssh tunels this problem might be similar to this one.
In current KTS implementation the port forward tunnel will not be opened before there is an active interactive session, and if your tool just tries to open forward tunel without an interactive session this will not work.

Kroum


 

© 2007 - 2008 Kroum Grigorov
Powered by phpBB © 2001, 2005 phpBB Group