Skip to content

Instantly share code, notes, and snippets.

@bat9r
Last active December 26, 2018 09:51
Show Gist options
  • Save bat9r/eaec972d80ac8181b400e719c30f1c28 to your computer and use it in GitHub Desktop.
Save bat9r/eaec972d80ac8181b400e719c30f1c28 to your computer and use it in GitHub Desktop.
Azure_acs_ssh_isuue

Error:

Incompatible ssh peer (no acceptable kex algorithm)
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
...

Workaround: Login into your Kubernetes master and add this

/etc/ssh/sshd_config

KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group1-sha1
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96

After it restart ssh

systemctl restart ssh
systemctl restart sshd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment