Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eddieace's avatar

Forge loses access when modifying volume size in AWS

I have a problem where forge loses ssh access when I modify the volume on my provisioned server on AWS. When the new server is provisioned, I can add my own key and ssh into the server, and forge can access the server too. But when I modify the volume of the EC2 instance storage, forge loses access but I can still ssh into the server using my own public key.

I'v tried everything in this link. https://forge.laravel.com/docs/1.0/servers/cookbook.html#server-disconnected

The error I get WHEN CONNECTING AS "root" USER:

Steps to reproduce.

  1. Provision a server on AWS.
  2. Add your public key, if it works it means that forge has ssh access. SSH into the server to make sure you also have access.
  3. log into the AWS console and stop the instance.
  4. Click on the ec2 instance storage and edit the volume size
  5. Start the instance again
  6. Forge now have lost SSH access, but you can still ssh into the server using your own public key

Anyone else experienced this?

0 likes
2 replies
eddieace's avatar
eddieace
OP
Best Answer
Level 11

SOLUTION: Starting the instance again changes the IP address. Update the IP address in the Forge dashboard.

1 like
Bradley James Ahrens's avatar

Just wanted to add here that after doing this, you'll also need to update your DNS with the new IP address as well.

Please or to participate in this conversation.