3
  1. I had an instance which I could smoothly ssh. However, suddenly today I was not able to do it after starting. Since I had an EBS and had edited the /etc/fstab file, some of the answers at stackoverflow said it has some issues with ssh_config file. I detaches the existing EBS, mounted it to a micro instance so as to fix the broken volume. However, I was unable to ssh the new micro.
  2. I terminated the instance in 1. Created a new one with similar config. Still cannot ssh.
  3. Just for the sake of it, I created one without an EBS.I can ping both 2 and 3 but not ssh.The exact problem I am facing is this:

aws ssh connection refused

Anyone, been there done that?

John Rotenstein's user avatar
John Rotenstein
273k28 gold badges456 silver badges541 bronze badges
askedApr 10, 2015 at 17:14
Ayushi Dalmia's user avatar
2
  • Try run ssh with-vvvv flag to get a sense what is going wrongCommentedApr 10, 2015 at 17:52
  • This is what it says:pastebin.com/Le0Stjjs Looks like proxy issue. However, I am able to access some other instancesCommentedApr 10, 2015 at 18:17

2 Answers2

2

Thanks everyone. It seems that AWS added a new set of IPs which was added to the necessary files since we access it behind a proxy.

Sithu's user avatar
Sithu
4,88210 gold badges68 silver badges113 bronze badges
answeredApr 12, 2015 at 8:05
Ayushi Dalmia's user avatar
Sign up to request clarification or add additional context in comments.

Comments

1

Looking at the logs, there are chances that your SSH service went down for some reason. I've been there many times in the past few years, and restarting the instance through the EC2 Console did the trick for me sometimes.

My suggestion would be to restart the instance from the EC2 Console, and try SSH-ing into the server again.

answeredApr 11, 2015 at 15:39
Karthik Kamalakannan's user avatar

Comments

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.