Ghost on Ubuntu再構築
WebARENA IndigoでVPSを借りてGhostをインストールまでしていましたが、ずっと放置していたらUbuntuのパスワードを忘れてしまいました。
デフォルトではアカウントはubuntu、パスワードはなしでSSH鍵でログインするみたいだけど、何か思いつきのパスワードを設定したっぽい。何度かチャレンジしたけどログインできないので、諦めて再構築することに。
Ubuntuサーバの作成
WebARENA Indigoのインスタンス管理の画面で「インスタンスの削除」、「SSH鍵の削除」を行った後、「SSH鍵の作成」(ダウンロードされる秘密鍵は再発行できないので無くさないように注意)、「インスタンスの作成」でUnuntu1CPU1GBの環境を作成しました。
スワップ領域の設定
以前インストールした時も1GBだと動かない場面もあったのでスワップの設定だけは必須。2GBのスワップ領域を設定しました。
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
Ghostのインストール
Ghostのインストールは公式の手順通りに行いました。
How to install & setup Ghost on Ubuntu 20.04 or 22.04
A full production install guide for how to install the Ghost professional publishing platform on a production server running Ubuntu 20.04 or 22.04.

Ghostがメールで認証コードを送ろうとするので、メールを送信できる環境も用意してあげる必要がある模様。とりあえず以下の手順でGmailを利用するようにしました。
How to setup basic SMTP for Ghost
How to setup basic SMTP for Ghost Almost everybody has Gmail, right? But a small amount of those knows, that it also includes free SMTP service, which is the same as other Google products: fast&reliable. Everything you need is your email and dedicated app password (for security reasons). 🗝 To generate this password : Go to https://myaccount.google.com/apppasswords Enter your regular password from your Google account (this is security settings) Select app, choose Other, and put the na…
