You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ssh from windows ssh terminal to jumphost (linux machine) : ok
SSH from jumphost to router : ok
using jumpssh + netmiko: nok. Error message:
-->
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\site-packages\netmiko\base_connection.py", line 1138, in establish_connection
self.remote_conn_pre.connect(**ssh_connect_params)
File "C:\Program Files\Python311\Lib\site-packages\paramiko\client.py", line 386, in connect
sock.connect(addr)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
<--
we modify ip and username and password.
But it cannot connect.
Enabling debug, we got :
...
INFO:paramiko.transport:Authentication (password) successful!
INFO:jumpssh.session:Successfully connected to 'jumphost:22'
DEBUG:paramiko.transport:Received global request "[email protected]"
DEBUG:paramiko.transport:Rejecting "[email protected]" global request from server.
DEBUG:paramiko.transport:EOF in transport thread
...
apparently it can connect to jumphost, but then got message : DEBUG:paramiko.transport:Rejecting "[email protected]" global request from server.
What should we do ?
thanks.
The text was updated successfully, but these errors were encountered:
Hi all,
I want to ssh to router via jumphost.
-->
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\site-packages\netmiko\base_connection.py", line 1138, in establish_connection
self.remote_conn_pre.connect(**ssh_connect_params)
File "C:\Program Files\Python311\Lib\site-packages\paramiko\client.py", line 386, in connect
sock.connect(addr)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
<--
our code is taken from : https://python-forum.io/thread-26866.html
from netmiko import ConnectHandler
from jumpssh import SSHSession
targetnode = {
'device_type': 'alcatel_sros',
'ip': 'targed_node',
'username': 'admin',
'password': 'admin',
'port': 22,
}
jh_session = SSHSession('jumpserver_ip','jumpserver_user',password='jumpserver_passwd').open()
remote_connect = ConnectHandler(**targetnode)
output = remote_connect.send_command("show router interface")
print(output)
we modify ip and username and password.
But it cannot connect.
Enabling debug, we got :
...
INFO:paramiko.transport:Authentication (password) successful!
INFO:jumpssh.session:Successfully connected to 'jumphost:22'
DEBUG:paramiko.transport:Received global request "[email protected]"
DEBUG:paramiko.transport:Rejecting "[email protected]" global request from server.
DEBUG:paramiko.transport:EOF in transport thread
...
apparently it can connect to jumphost, but then got message : DEBUG:paramiko.transport:Rejecting "[email protected]" global request from server.
What should we do ?
thanks.
The text was updated successfully, but these errors were encountered: