py-junos-eznc icon indicating copy to clipboard operation
py-junos-eznc copied to clipboard

Implement SSH keepalives, default 30-second interval, for NETCONF over SSH sessions.

Open stacywsmith opened this issue 7 years ago • 2 comments

Without SSH keepalives, a NAT or stateful firewall along the network path between the PyEZ host and the target Junos device, may timeout an inactive TCP flow and cause the NETCONF over SSH session to hang. Sending SSH keepalives avoids this situation. The default value is 30 seconds. Setting this parameter to a value of 0 disables SSH keepalives.

Note: This is a different situation than Issue #663 in which the target Junos device is timing out the NETCONF over SSH session due to a configured idle-timeout on the system login class.

stacywsmith avatar Feb 14 '17 03:02 stacywsmith

There should be a check to make sure that this value in the ssh config file is not overridden.

spidercensus avatar Feb 14 '17 15:02 spidercensus

Can one of the admins verify this patch?

vnitinv avatar Mar 24 '17 10:03 vnitinv