1from jumpssh import SSHSession
2
3# establish ssh connection between your local machine and the jump server
4gateway_session = SSHSession('gateway.example.com','my_user', password='my_password').open()
5
6# from jump server, establish connection with a remote server
7remote_session = gateway_session.get_remote_session('remote.example.com',password='my_password2')
8