9 lines
297 B
Python
9 lines
297 B
Python
import paramiko
|
|
|
|
c = paramiko.SSHClient()
|
|
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
c.connect('140.44.4.41', username='root', password='dietpi', timeout=10)
|
|
_, o, _ = c.exec_command("kubectl get applications.argoproj.io -n infrastructure")
|
|
print(o.read().decode().strip())
|
|
c.close()
|