telent to remote device via jump ssh using python code example
Example: 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')