Can't ssh or sftp into ec2 instance
<p>I have seen quite some posts about my problem, but none is exactly my case.
I have an Ec2 ubuntu instance that I have been working on for some time now. I never had to do anything special to connect using ssh of filezilla. I just had my key, with the right permissions and that was it.
Suddenly, today, while i was using filezilla to do some stuff, i got an error.</p>

<pre><code>Error:  Disconnected: No supported authentication methods available (server sent: publickey)
Error:  Could not connect to server
</code></pre>

<p>At the same time, i was connected in the ssh (mac terminal), and didn't think it was something special, so i tried to disconnect and reconnect in the terminal.</p>

<p>I got <code>Permission denied (publickey)</code>...</p>

<p>I don't know what i changed, if i ever changed anything, and I am far from a linux/aws expert.</p>

<p>Anyways, I am getting pretty scared right now, because I had setup some good crawlers that i don't have a recent backup for.</p>

<p>I tried creating an AMI, hoping to clone the server and be able to access it again as another instance, but when i created the other instance and tried to connect with the other key, I got the same thing.</p>

<p>What should I do ?..</p>