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
To be explicit, this is what I see when I try to login manually...
% ssh myuser@some.old.system.localdomain
Unable to negotiate with 172.16.1.251 port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
If I manually change options, such as: ssh -c 3des-cbc some.old.system.localdomain, then the ssh session works.
Issue #190 worked around the problem a different way... but Exscript should have a way to handle it without modifying ~/.ssh/config
The text was updated successfully, but these errors were encountered:
mpennington-te
changed the title
Exscript needs to negotiate correctly with older SSH systems...
Exscript needs to negotiate ciphers automatically with older SSH systems...
Aug 12, 2021
I fixed the problem by forcing paramiko to downgrade ssh session params for this host...
fromExscript.util.interactimportread_loginfromExscript.protocolsimportSSH2importparamiko### Ask paramiko to downgrade ciphers and kex algorithms...### Begin problem resolution...paramiko.Transport._preferred_ciphers= ('aes128-cbc', '3des-cbc',)
paramiko.Transport._preferred_kex= ('diffie-hellman-group-exchange-sha1', 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1',)
### End problem resolution...account=read_login()
conn=SSH2(driver='generic')
conn.connect('some.old.system.localdomain')
conn.login(account)
conn.execute('term len 0')
conn.execute('show version')
version_output=conn.responseconn.send('exit\r')
conn.close()
@egroeper please close this ticket out when you have time... I opened the ticket while I was working for Cisco, but I left and don't have access to those credentials now...
Exscript has problems logging into systems which need changes to allowed SSH2 ciphers... Exscript will fail on this host...
Example script:
To be explicit, this is what I see when I try to login manually...
If I manually change options, such as:
ssh -c 3des-cbc some.old.system.localdomain
, then the ssh session works.Issue #190 worked around the problem a different way... but Exscript should have a way to handle it without modifying
~/.ssh/config
The text was updated successfully, but these errors were encountered: