title: Azure acs ssh login keeping failing with "permission denied (public key)"
body: <p>I have successfully deployed a mesos cluster on azure container service using article <a href="https://azure.microsoft.com/en-us/documentation/articles/container-service-deployment/" rel="nofollow noreferrer">deploy an container service cluster</a>. I used azure cli on OS X for creating the cluster. As part of the process I created a new ssh key pair:</p>
  <pre><code>ssh-keygen -t rsa -b 2048 
  </code></pre>
  <p>After deployment went successful I'm trying to <a href="https://azure.microsoft.com/en-us/documentation/articles/container-service-connect/" rel="nofollow noreferrer">ssh into the end point</a> but receiving &quot;Permission Denied (Public Key)&quot;</p>
  <pre><code> ssh -L 80:localhost:80 -N azureuser@xyz.eastus2.cloudapp.azure.com -p 2200 -v
  </code></pre>
  <p>The verbose [not all but last few lines]</p>
  <pre><code>debug1: Host '[xyz.eastus2.cloudapp.azure.com]:2200' is known and matches the RSA host key.
  debug1: Found key in /var/root/.ssh/known_hosts:2
  debug1: ssh_rsa_verify: signature correct
  debug1: SSH2_MSG_NEWKEYS sent
  debug1: expecting SSH2_MSG_NEWKEYS
  debug1: SSH2_MSG_NEWKEYS received
  debug1: Roaming not allowed by server
  debug1: SSH2_MSG_SERVICE_REQUEST sent
  debug1: SSH2_MSG_SERVICE_ACCEPT received
  debug1: Authentications that can continue: publickey
  debug1: Next authentication method: publickey
  debug1: Trying private key: /var/root/.ssh/id_rsa
  debug1: Trying private key: /var/root/.ssh/id_dsa
  debug1: No more authentication methods to try.
  Permission denied (publickey).
  </code></pre>
  <p>I don't recall any issues while creating the ssh keys but may be something I've missed just not sure what it cloud be.</p>