Set timeout to 0 - WeOnlyDo Discussion board

Set timeout to 0 (wodSFTP / wodSFTP.NET / wodSFTPdll)

by sumeetkoshal, Tuesday, January 04, 2005, 10:36 (7054 days ago)

Hi All,
Accoring to the help it is clearly mentioned that if I don't want autodisconnection to occur, I should set Timeout property to 0.

But inspite of setting this property to 0 it gets disconneted in between while I am debugging the code. Plz help....

Awaiting ur response

Regards
Sumeet

Re: Set timeout to 0

by wodSupport, Tuesday, January 04, 2005, 11:44 (7054 days ago) @ sumeetkoshal

Sumeet,

do you get any errors? You should get 'timeout expired' error in Disconnected event if it's timeout issue. But it could be somethign else involved here - such as server disconnecting you due to inactivity. Possible?

Re: Set timeout to 0

by sumeetkoshal, Tuesday, January 04, 2005, 13:37 (7054 days ago) @ wodSupport

Hi,
In that case can u tell me that what is the use of settimeout property. inspite of setting it to 0 it is getting disconnected by the server. Plz tell me the alternative.

Regards
Sumeet

Re: Set timeout to 0

by wodSupport, Tuesday, January 04, 2005, 14:56 (7054 days ago) @ sumeetkoshal

Sumeet,

there is no alternative, Timeout=0 must work. There's always possibility we have a bug, but I doubt this is the case.

Do you get timeout error so we can be sure this is timeout issue? Perhaps server disconnects you...

Re: Set timeout to 0

by sumeetkoshal, Wednesday, January 05, 2005, 06:07 (7053 days ago) @ wodSupport

Hi,
Actually I get the message Disconnected from server
That is why I had used SetTimeout property. But didn't worked.
Please give me the solution at the earliest.

Regards
Sumeet

Re: Set timeout to 0

by wodSupport, Wednesday, January 05, 2005, 11:02 (7053 days ago) @ sumeetkoshal

Sumeet,

I cannot. If it's disconnected from the server then I cannot know the reason why server disconnected you.

Do you have root privileges on the server? Assuming it's OpenSSH, can you stop sshd service

/etc/init.d/sshd stop

and then start it in debug mode

sshd -ddd

and then connect, and send me logs dumped on the screen? This should explain why you got disconnected.

Re: Set timeout to 0

by sumeetkoshal, Wednesday, January 05, 2005, 12:56 (7053 days ago) @ wodSupport

Hi,
When I run the service in debug mode and try to connect it gives me the following error on the screen:


C:Documents and SettingsAdministrator> C:Program FilesBitvise WinSSHDWinSSH
D.exe -ddd
000000000001 2005-01-05 17:21:53.703 WinSSHD 3.28d Event 001 [Info]
Configuration loaded:
* Keypair:
MD5: e5:23:e1:94:ac:5c:22:68:c4:7a:61:58:22:e5:3b:d5
Babble: xogec-saval-vociz-pysam-calir-zucic-tuked-tapeb-fegus-bibeh-doxax
* Settings:
With server {
binding.interface 0.0.0.0
binding.port 22
With logging {
logToEventLog true
eventLogLevel logLevelEWI
eventLogEventList.list 1111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111111010110101010101
111111110000011111101111100011110111110111111111111110111011111
logToFile false
logFileLevel logLevelEWI
logFileEventList.list 11111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111110101101010101011
11111110000011111101111100011110111110111111111111110111011111
logFile
logFileUnicode false
logFileCodePage 0
logFileWrapColumn 79
}
With bvterm {
maxBufWidth 100
maxBufHeight 500
refreshDelay 50
}
ext.sftpPlugins
}
With algs {
With encr {
aes256-cbc true
twofish256-cbc true
aes128-cbc true
twofish128-cbc true
blowfish-cbc true
3des-cbc true
arcfour true
cast128-cbc true
none false
}
With mac {
hmac-sha1 true
hmac-md5 true
hmac-sha1-96 true
hmac-md5-96 true
none false
}
cmpr.zlib true
cmpr.none true
}
With session {
bannerFile
loginTimeout 60
maxLoginAttempts 3
loginAttemptDelay 3
keepAliveTimeout 60
sessionTimeout 0
startReexchange true
tolerateFirstWindowFault true
maxSubsequentFaultBytes 35000
}
With proxyProfiles {
clear
createNewWithId 1
With new {
profileName Default
proxyType None
proxyHost
proxyPort 1080
resolveLocally true
proxyUsername
proxyPassword Crypt:854B7AD6BB39BEA59868FD9DBD4036FA22B558B530EF11DF6CCE
88A5F027565CEC5EF440
}
newCommit
}
With access {
With templates {
clear
createNewWithId 1
With new {
name Default
loginAllowed true
permitRemoteAdmin true
mapRemoteHomeDir false
With onLogonCmd {
command
execAsService false
maxWaitTime 0
allowJobBreakaway false
}
With onLogoffCmd {
command
execAsService false
maxWaitTime 0
allowJobBreakaway false
}
allowSessionJobBreakaway false
permitTerminalShell true
terminalShell cmd.exe
initDir
permitExecRequests true
permitSftp true
sftpRootDir c:\sftp\
permitC2SForwarding true
permitS2CForwarding true
With connectRules {
With ipRules {
clear
createNewWithId 1
With new {
ipRule.ip 0.0.0.0
ipRule.sigBits 0
portRangeRule.portFrom 1
portRangeRule.portTo 65535
With instr {
allowConnect true
targetHost
targetPort 0
proxyProfile Default
}
}
newCommit
}
dnsNameRules.clear
}
With listenRules {
clear
createNewWithId 1
With new {
ipRule.ip 0.0.0.0
ipRule.sigBits 0
portRangeRule.portFrom 0
portRangeRule.portTo 65535
With instr {
allowListen true
Wi

Re: Set timeout to 0

by wodSupport, Wednesday, January 05, 2005, 12:57 (7053 days ago) @ sumeetkoshal

Oh, you use winSSHD. I have to contact Dennis (author of WinSSHD) to see about this error then. I think it also dumps logs somehow, can you find where? It's obviously not the same as in OpenSSH

Re: Set timeout to 0

by sumeetkoshal, Wednesday, January 05, 2005, 13:06 (7053 days ago) @ wodSupport

Hi,
I don't know where it dumps the log.
Can u tell me when will I be getting the solution for the same ?

Regards
Sumeet

Re: Set timeout to 0

by wodSupport, Wednesday, January 05, 2005, 13:11 (7053 days ago) @ sumeetkoshal

I am not sure, try this:

open WinSSHD control panel, go to 'Settings' tab, click on 'Edit/View Settings', select 'Logging', choose 'Errors, Warnings, Info, Trace' from the combo box. Click on 'Save and Close', try to connect, and then check out 'View WinSSHD Event log'. Does it say anything?

Re: Set timeout to 0

by sumeetkoshal, Wednesday, January 05, 2005, 13:32 (7053 days ago) @ wodSupport

Hi,

I get the following 3 events on disconnection...
1. Terminating gracefully
2.The client is not responding - the session may have been broken by intermediate network components. Disconnecting.
3.Closing session server.


Awaiting ur resonse on the same....
Regards
Sumeet

Re: Set timeout to 0

by wodSupport, Friday, January 07, 2005, 01:19 (7052 days ago) @ sumeetkoshal

Sumeet,

'the client is not responding'. Do you get this while because you debug? It's possible server sends 'keep-alive' and client isn't responding to them. Would that explain disconnection?