diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2024-09-15 20:22:22 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2024-09-15 20:22:22 +0300 |
| commit | 45738b1d0878a7594bd23068add19f4c2c389a93 (patch) | |
| tree | 96536a3493af432b46cffa77c7413267062a2876 | |
| parent | Add logging. (diff) | |
| download | python-prometheus-ssh-exporter-45738b1d0878a7594bd23068add19f4c2c389a93.tar.gz | |
Delete ssh arguments.origin/disable-ssh-arguments
| -rw-r--r-- | prometheus_tp_link_exporter/__main__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prometheus_tp_link_exporter/__main__.py b/prometheus_tp_link_exporter/__main__.py index 1761079..e938c46 100644 --- a/prometheus_tp_link_exporter/__main__.py +++ b/prometheus_tp_link_exporter/__main__.py @@ -20,7 +20,7 @@ def ifconfig_devices(): """Connect to TP-Link device over SSH and return ifconfig output.""" return jc.parsers.ifconfig.parse( subprocess.getoutput( - f"sshpass -p{password} ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -F /dev/null admin@{host} /sbin/ifconfig" + f"sshpass -p{password} ssh admin@{host} /sbin/ifconfig" ) ) |
