OpenSSH 9.8+ (PerSourcePenalties) closes every connection from a source it has just penalised, before its banner, for seconds to minutes. A security scanner's probes earn the managing client exactly that.
open() wraps netmiko's ConnectHandler in device-types' retry_refused. A connection turned away before the banner is tried again after 1, 3, 7 and 15 s, 26 s in all. Everything else fails as before, including a host-key mismatch (the existing test is unchanged).
New test: ConnectHandler raises netmiko's wrapped "Error reading SSH protocol banner" twice, then connects.
260 tests green (against the device-types branch). ruff and mypy clean.
Note: the floor stays napalm-device-types>=4.22.0. retry_refused is in device-types' Unreleased section. Once a release with it exists, raise the floor to that version. netOrk's pin covers it until then.
For NetOrk/netork#1800. **Depends on NAPALM/napalm-device-types#63**: CI installs device-types from `main`, so this goes green once #63 is merged.
OpenSSH 9.8+ (`PerSourcePenalties`) closes every connection from a source it has just penalised, before its banner, for seconds to minutes. A security scanner's probes earn the managing client exactly that.
- `open()` wraps netmiko's `ConnectHandler` in device-types' `retry_refused`. A connection turned away before the banner is tried again after 1, 3, 7 and 15 s, 26 s in all. Everything else fails as before, including a host-key mismatch (the existing test is unchanged).
- New test: `ConnectHandler` raises netmiko's wrapped "Error reading SSH protocol banner" twice, then connects.
- 260 tests green (against the device-types branch). ruff and mypy clean.
Note: the floor stays `napalm-device-types>=4.22.0`. `retry_refused` is in device-types' Unreleased section. Once a release with it exists, raise the floor to that version. netOrk's pin covers it until then.
OpenSSH 9.8+ closes every connection from a source it has just
penalised, before its banner, for seconds to minutes. open() now wraps
netmiko's ConnectHandler in napalm-device-types' retry_refused, so the
connection is tried again after 1, 3, 7 and 15 s instead of failing.
Needs NAPALM/napalm-device-types#63.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
For NetOrk/netork#1800. Depends on NAPALM/napalm-device-types#63: CI installs device-types from
main, so this goes green once #63 is merged.OpenSSH 9.8+ (
PerSourcePenalties) closes every connection from a source it has just penalised, before its banner, for seconds to minutes. A security scanner's probes earn the managing client exactly that.open()wraps netmiko'sConnectHandlerin device-types'retry_refused. A connection turned away before the banner is tried again after 1, 3, 7 and 15 s, 26 s in all. Everything else fails as before, including a host-key mismatch (the existing test is unchanged).ConnectHandlerraises netmiko's wrapped "Error reading SSH protocol banner" twice, then connects.Note: the floor stays
napalm-device-types>=4.22.0.retry_refusedis in device-types' Unreleased section. Once a release with it exists, raise the floor to that version. netOrk's pin covers it until then.