Host machine ---- Jumpserver ( account password and then RSA Token password ) ---- SSH to cisco devices.
How do I create SSH
sessions to end devices after SSH
connection to jump host has been established using the below code.
Also, if there is a better way to handle authentication with jumpserver that asks for auth password and RSA
token as Link.
import paramiko
from paramiko import SSHException
import logging
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
paramiko.common.logging.basicConfig(level=paramiko.common.DEBUG)
ssh.connect(hostname="jump_server_ip", port=22)
ssh.get_transport().auth_interactive_dumb(("username", "password"))
after pushing this command ssh.get_transport().auth_interactive_dumb(username="username")
I get this Link.
Thank You