summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2024-09-15 20:22:22 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2024-09-15 20:22:22 +0300
commit45738b1d0878a7594bd23068add19f4c2c389a93 (patch)
tree96536a3493af432b46cffa77c7413267062a2876
parentAdd logging. (diff)
downloadpython-prometheus-ssh-exporter-origin/disable-ssh-arguments.tar.gz
Delete ssh arguments.origin/disable-ssh-arguments
-rw-r--r--prometheus_tp_link_exporter/__main__.py2
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"
)
)