用于 ssh -p 10002 ubuntu@127.0.0.1 的 Paramiko
Paramiko for ssh -p 10002 ubuntu@127.0.0.1
如何在 paramiko 中为 ssh -p 10002 root@127.0.0.1
执行 ssh?
ssh.connect("how to give here")
我应该使用什么命令来传递 ssh.connent()
?
ssh.connect("location", username="user", password="pswd")
location 通常是网址 "example.com" 但也可以指向本地。
http://docs.paramiko.org/en/2.3/index.html
我找到了解决方案
ssh.connect('127.0.0.1',10002,username='root',password='root')
如何在 paramiko 中为 ssh -p 10002 root@127.0.0.1
执行 ssh?
ssh.connect("how to give here")
我应该使用什么命令来传递 ssh.connent()
?
ssh.connect("location", username="user", password="pswd")
location 通常是网址 "example.com" 但也可以指向本地。 http://docs.paramiko.org/en/2.3/index.html
我找到了解决方案
ssh.connect('127.0.0.1',10002,username='root',password='root')