Amazon EC2 Connection Refused Setelah Edit fstab

Kasus saya adalah tidak bisa terhubung ke cloud computer server AWS EC2 setelah ditambahkan satu baris parameter di /etc/fstab. Penambahan tadi dimaksudkan agar hard disk bisa ter-mount secara otomatis ketika reboot.

Setelah dicoba reboot EC2, instance tidak bisa diakses lagi lewat ssh.

Berikut step-step garis besarnya untuk mengembalikan instance agar bisa diakses kembali.

  • stop broken instance.
  • setup new instance.
  • attach broken volume instance to new instance
  • mount broken volume.
  • edit fstab, make it back as before.
  • umount volume.
  • detach broken volume instance from new instance
  • start broken instance
  • voile, its working again

Tambahan tips agar ip public tidak berubah setelah stop, buat Elastic IP dan associate it with your instance.

reference: amazon-ec2-no-ssh-after-reboot-connection-refused

 

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.