title: Unable to connect from ec2 server
body: <p>I am trying to login on ec2 instance server, but I am getting me errors like </p>
  
  <blockquote>
    <p>Too many authentication failures for ubuntu,</p>
  </blockquote>
  
  <p>or</p>
  
  <blockquote>
    <p>Permission Denied (Public key).</p>
  </blockquote>
  
  <p>when I connect  to the server with <code>ssh -i "pem_file" ec2_name@public_ip</code></p>
  
  <p>When yesterday, I was login in server, it's worked but after exit from server and again trying to login it's giving me errors which is mentions above.</p>