Answers for "how to ssh jump telnet using python"

1

telnet via jump host using python

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')
Posted by: Guest on August-08-2020

Python Answers by Framework

Browse Popular Code Answers by Language