Timeouts in SSH/SFTP

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
zStefan
Posts: 15
Joined: Thu Jun 10, 2010 6:14 am

Timeouts in SSH/SFTP

Post by zStefan »

Hi,
We have been running z/OS batch ssh/sftp jobs successfully for a couple of years now, but get intermittent failures, usually when the z/OS system is running slowly. So my question is does anyone know whether either of the 2 following timeout values can be changed? We are using keypair authentication to a Linux system with the keyring technique.
We sometimes get this
SpawnSafSshAgentÝE¨: Timeout waiting for SSH_AUTH_SOCK creation
SSH connection established, but authentication fails

and sometimes get this
SSH OK, authentication OK, user script invoked OK at Linux target then
cozagentÝW¨: STDERR DD Writer did not complete within the timeout period of 20 seconds; killing
todsn-client(27712)ÝE¨: Error: no exit code received from CoZServer
cozagentÝE¨: STDERR DD Writer(27712) ended with RC=102

I know we are back-level, which I can fix, but it would be really useful to know where the timeout values can be set.
CoZLauncherÝN¨: version: 1.8.0 2011-02-03
cozagentÝN¨: version: 1.0.14 2011-05-19
Thanks, Stefan
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Re: Timeouts in SSH/SFTP

Post by dovetail »

The timeout from SpawnSafSshAgent occurs after waiting for up to 2 seconds for a child process to start (spawn in the same address space) on z/OS.
Currently, this timeout can not be overridden.

The cozagent timeout can be increased.
Use the following setting in COZCFG or COZCFGD to change the completion timeout to 60 seconds:

agent-options=-w 60
zStefan
Posts: 15
Joined: Thu Jun 10, 2010 6:14 am

Re: Timeouts in SSH/SFTP

Post by zStefan »

Thanks, Dovetail. Will try agent-options.
Post Reply