fabric建立ssh连接

cooolr 于 2021-10-20 发布
from fabric import Connection

c = Connection(host="192.168.1.1", port=22, user="root", connect_kwargs={"password":"123456"})

c.run("uname -a")