Cannot SSH into Resized EC2 Instance


Hi all,

I have been working on deploying an application on an EC2 instance (ubuntu 22.04) and have ran into some issues with ssh'ing back into the server after a restart. I take it that the associated volume is fine, as I'm able to migrate and mount it to other EC2 instances with my .pem file and get in via ssh without issue. I have verified that this pem file is valid, as well as that it is the relevant one for this specific instance. I've included a picture of the verbose errors I've received when trying to ssh, and am happy to provide more granular details if needed.Enter image description here.

  • Hi, @okeefe.

    Please tell us your pre-change and post-change instance types.

asked 5 months ago47 views
1 Answer

Hi - Please provide more details from which instance type to which you made the resize and also can you please see if the instructions on following are being followed?

In the AWS EC2 console, click on the checkbox next to your instance's name, then click on Actions and select Connect. Click on the SSH client tab and copy the ssh command example and also see all other instructions.

profile picture
answered 5 months ago
profile picture
reviewed 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions