Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Why would I get a "Permission denied: connect" while trying to ssh to an amazon instance? I'm using the same key pair that works with other instances in my account. Only this new instance I just created doesn't allow me to ssh.

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

This has occurred only once more till now - when I attached a 64-bit volume to a 32-bit instance.

And earlier I am guessing the instance just got corrupted when I tried to shutdown tomcat manually (which btw you shouldn't do beanstalk)

Recreating the instance in both the cases sorted the issue (though it didn't let me recover the existing instances)

For want of any better answer, I will close this question.

share|improve this answer
add comment

Check /var/log/secure, it'll usually give you an idea of what could be the problem with SSH.

Were both instances created with the same keypair?

You're trying to ssh as ec2-user?

share|improve this answer
    
same keypair. user was ec2-user. i deleted the instance and created a new one and was able to login with the same keypair. will check /var/log/secure the next time it happens. Thanks. –  aldrin Jun 5 '12 at 9:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.