Loading key from an SSH jumphost using Paramiko
问题 I am connecting from host1 to host3 using a middle host2. host1 --> host2 --> host3 Here is my code that is working fine: # SSH to host2 ssh = paramiko.SSHClient() ssh.load_system_host_keys() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(host2, username=host2_username) # SSH to host3 vmtransport = ssh.get_transport() dest_addr = (host3, 22) local_addr = (host2, 22) vmchannel = vmtransport.open_channel("direct-tcpip", dest_addr=dest_addr, src_addr=local_addr) ssh3 =