📜  使用 python 代码示例通过跳转主机远程登录

📅  最后修改于: 2022-03-11 14:45:25.186000             🧑  作者: Mango

代码示例1
from jumpssh import SSHSession

# establish ssh connection between your local machine and the jump server
gateway_session = SSHSession('gateway.example.com','my_user', password='my_password').open()

# from jump server, establish connection with a remote server
remote_session = gateway_session.get_remote_session('remote.example.com',password='my_password2')