title: Permission denied on Amazon LightSail
body: <p>Login works with LightsailDefaultPrivateKey-eu-west-1.pem but not with my own key-pair.</p>
  
  <p>I tried to generate the keys with 'ssh-keygen -t rsa -b 4096 -C "my@email.com" -f ~/.ssh/lsail-mikemittererat-eu-west-1.pem'</p>
  
  <p>I also tried to generate a key on AWS/S2, dowloaded it, generated a public key out of the private key and uploaded it to LightSail - the same result. It doesn't work.</p>
  
  <p>Error-Message:
  ssh -i ~/.ssh/ssh_my-website ubuntu@
  Permission denied (publickey).</p>
  
  <p>This is what I get if I use the -v option:</p>
  
  <pre><code>ssh -v -i ~/.ssh/lsail-mikemittererat-eu-west-1.pem ubuntu@&lt;public ip&gt;
  
  OpenSSH_6.9p1, LibreSSL 2.1.8
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: /etc/ssh/ssh_config line 21: Applying options for *
  debug1: /etc/ssh/ssh_config line 56: Applying options for *
  debug1: Connecting to &lt;public ip&gt; [&lt;public ip&gt;] port 22.
  debug1: Connection established.
  debug1: identity file /Users/mikemitterer/.ssh/lsail-mikemittererat-eu-west-1.pem type 1
  debug1: key_load_public: No such file or directory
  debug1: identity file /Users/mikemitterer/.ssh/lsail-mikemittererat-eu-west-1.pem-cert type -1
  debug1: Enabling compatibility mode for protocol 2.0
  debug1: Local version string SSH-2.0-OpenSSH_6.9
  debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 pat OpenSSH* compat 0x04000000
  debug1: Authenticating to &lt;public ip&gt;:22 as 'ubuntu'
  debug1: SSH2_MSG_KEXINIT sent
  debug1: SSH2_MSG_KEXINIT received
  debug1: kex: server-&gt;client chacha20-poly1305@openssh.com &lt;implicit&gt; none
  debug1: kex: client-&gt;server chacha20-poly1305@openssh.com &lt;implicit&gt; none
  debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  debug1: Server host key: ecdsa-sha2-nistp256 SHA256:6u6vqWOSbOSNiPYAOqa5q/epSntR7GG5dvFzKuUAJOQ
  debug1: Host '&lt;public ip&gt;' is known and matches the ECDSA host key.
  debug1: Found key in /Users/mikemitterer/.ssh/known_hosts:38
  debug1: SSH2_MSG_NEWKEYS sent
  debug1: expecting SSH2_MSG_NEWKEYS
  debug1: SSH2_MSG_NEWKEYS received
  debug1: SSH2_MSG_SERVICE_REQUEST sent
  debug1: SSH2_MSG_SERVICE_ACCEPT received
  debug1: Authentications that can continue: publickey
  debug1: Next authentication method: publickey
  debug1: Offering RSA public key: /Users/mikemitterer/.ssh/lsail-mikemittererat-eu-west-1.pem
  debug1: Authentications that can continue: publickey
  debug1: No more authentication methods to try.
  Permission denied (publickey).
  </code></pre>
  
  <p>permission of .pem is set to 600, .ssh ist set to 700</p>