Paramiko - Incompatible SSH server (no acceptable macs)
<p>I've been using paramiko for a while and everything has worked as expected, but when I moved out of my testing environment, I got this error when opening an ssh session</p>

<pre><code>paramiko.ssh_exception.SSHException: Incompatible ssh server (no acceptable macs)
</code></pre>

<p>After tracing down the error, I noticed that on my remote server, I'm missing some entries in my <code>/etc/ssh/sshd_config</code> file. Neither of my setups have these MACs listed:</p>

<ul>
<li>HMAC-SHA1</li>
<li>HMAC-MD5</li>
<li>HMAC-SHA1-96</li>
<li>HMAC-MD5-96</li>
</ul>

<p>However, it works in one and not the other. What could be causing this? I don't have rsa keys saved in either one (remote server does not allow for writing). </p>

<p>Remote server's <code>sshd_config</code></p>

<pre><code>#
# Allow Ciphers and MACs
#
Ciphers aes256-ctr,aes192-ctr,aes128-ctr,arcfour256,arcfour128
MACs umac-64@openssh.com,hmac-ripemd160,hmac-sha2-512,hmac-sha2-256
</code></pre>

<p><code>RemoteAccess.py</code></p>

<pre><code>class RemoteAccess():
    def __init__(self, host="abc123", username="abc", password="123"):
        self.name = host
        self.client = paramiko.SSHClient()
        self.client.load_system_host_keys()
        self.client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
        self.client.connect(host, username=username, password=password)
</code></pre>

<p>Links I've referenced:</p>

<p><a href="https://stackoverflow.com/questions/28399335/python-paramiko-incompatible-ssh-server">Python - Paramiko - incompatible ssh server</a></p>

<p><a href="https://stackoverflow.com/questions/7286929/paramiko-incompatible-ssh-peer-no-acceptable-kex-algorithm/32691055#32691055">paramiko Incompatible ssh peer (no acceptable kex algorithm)</a></p>