python - paramiko Incompatible ssh peer (no acceptable kex algorithm) -


I'm getting the following error while trying to ssh on a Cisco ACS device using the paramico library The problem is to use paramiko in Python, and I can use this box from the command line, or without any problem putty. I have started debugging and copied the information here. Please tell me if you can help me.

  import paramiko Try import systems: paramiko.common.logging.basicConfig (level = paramiko.common.DEBUG) sshConnection = paramiko.SSHClient () sshConnection.set_missing_host_key_policy (paramiko.AutoAddPolicy () ) sshConnection.connect ( 'server', username = "username" password = "password") except paramiko.BadAuthenticationType: sys.stdout.write ( 'bad password \ n!') excluding cis Paramiko.asacaksepshn. Exit (), sshFail: sys.stdout.write ('Connection Fail! \ N') sys.stdout.write ('% s \ n'% sshFail) except sys.exit () socket.error, socket file: sys. Stdout.write ('failed to open socket') sys.stdout.write ('% s \ n'% socketFail ) Sys.exit ()   

and returned the debug output:

  debug: paramiko.transport: 0x14511d0L info: paramiko.transport: thread (client mode) Connected to Start (Version 2.0, Customer OpenSSH_5.3) Debug: paramiko.transport: Cakes Algos: ['Defy-Hellen-Group 14-sha1'] Server Key: ['SSH-RSA'] Client Encrypt: [ 'S-256-CBC "," AES-128-CBC', '3des-cbc'] server is encrypted: [ 'aes256-cbc', 'aes128-cbc', '3des-cbc'] client Mac: [ 'Hmac-Shal '] Server Mac: [' HMAC-SHA1 '] Compress Customer: [' None ',' Zlib@openssh.com '] Server Compressed: [' None ',' zlib@openssh.com '] Client long: [']] server long: [']] KX adheres? Wrong error: Paramikoktransport: exception: inconsistent ssh peer (no acceptable kex algorithm) Error: Paramikoktransport: Traceback (most recent call last): error: Paramikoktransport: build file "\ bdist.win32 \ egg \ paramiko "Transportation.", Line 1546, in run error: paramiko.transport: self._handler_table [ptype] (self, m) error: paramiko.transport: file "build \ bdist.win32 \ egg \ paramiko \ transport.py" , line 1618, _negotiate_keys error: paramiko.transport: self._parse_kex_init (M) error: paramiko.transport: file "Built \ bdist.win32 \ egg \ paramiko \ transport.py", line 1731, _parse_kex_init In Ruti: Paramikoktransport: increase SSHException ( "incompatible SSH peer (no acceptable Cux algorithms)) Error: Prmoko. Transport: SSH Exception: Incompatible SSH Peer (None Imitation KX Algorithm) Error: paramiko.transport: Connection Failed! Incompatible SSH Coworker (Any Acceptable Cookie Algorithm)   

I've ensured that I have the most recent version of PicturePretto and Paramico installed.

I had a similar problem with Debian 8 and OpenSSH on the server side.

  cipher aes256-gcm@openssh.com, AES128-gcm @ openssh.com, AES256-CTR, AES128- CTR MACs HMAC-sha2-512-ETM @ openssh.com , HMAC-sha2-256-ETM @ openssh.com, umac-128-ETM @ openssh.com, HMAC-sha2-512, HMAC-sha2-256, HMAC-ripemd160, HMAC-SHA1 KexAlgorithms Diffie-Hellman- group-exchange -SHA256, Diffie-Hellman-group14-SHA1, Diffie-Hellman-Group-Exchange-SHA1   

However ... you will see those settings in a secure context.

It is also not certain that you can modify it for Cisco ACS in such a way

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -