quipucords / rho

A tool for scanning a network, logging into systems using SSH, and retrieving information about available Unix and Linux servers.
https://quipucords.github.io/rho/
GNU General Public License v2.0
5 stars 7 forks source link

Add ClientAlive options to discovery and host flows #550

Closed chambridge closed 6 years ago

chambridge commented 6 years ago

Specify type:

Description:

Update the ssh-comman-args

Discovery: https://github.com/quipucords/rho/blob/master/rho/host_discovery.py#L121 --ssh-common-args="-o ServerAliveInterval=10 ClientAliveInterval=120 ClientAliveCountMax=0"

Host Scan: https://github.com/quipucords/rho/blob/master/rho_playbook.yml#L10 ansible_ssh_common_args: '-o ServerAliveInterval=10 ClientAliveInterval=600 ClientAliveCountMax=0'

noahl commented 6 years ago

Unfortunately it looks like ClientAliveInterval and ClientAliveCountMax are only sshd configuration options, not ssh options. Unless the user has already configured sshd with these options on their remote machines, we can't use them.

See https://linux.die.net/man/5/ssh_config and https://linux.die.net/man/5/sshd_config .

noahl commented 6 years ago

ServerAliveCountMax is a thing on the client side, but I'm not sure if it will be helpful here.

chambridge commented 6 years ago

Let's close this out then. Nothing to do.