0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ConoHa VPS契約後に発生したエラーと対処まとめ(Discord Bot運用)

Posted at

はじめに

個人開発の Discord Bot(Node.js)を
ConoHa VPS で運用しようとして、契約直後、SSH接続をしようとした際、エラーに遭遇したため、VPS経験がなく、かなり困ったため記録します。

環境

  • VPS:ConoHa VPS
  • OS:Ubuntu 24.04 LTS
  • 開発内容:Discord Bot
  • 言語:Node.js (TypeScript)
  • DB:SQLite
  • 常駐化:pm2

SSH接続できない(Connection timed out)

発生した現象

ssh ユーザー名@<IPアドレス>
ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection timed out

Pingも通らず、SSH接続不可。

原因

ConoHaのセキュリティグループで SSH(22) が許可されていなかった

VPS自体は起動しているが、外部からの通信がブロックされていた。

対処

ConoHa管理画面で以下を設定:

セキュリティグループ

インバウンドルール追加

  • プロトコル:TCP

  • ポート:22

  • 許可IP:0.0.0.0/0

設定後、SSH接続が可能になった。

学び

古い情報だったからか私が参照していたサイトはデフォルトで22のポートが解放されていたため対処に困った。ポート管理は、OSだけではなくサービスの管理画面でも設定が必要だったため、そこに気づけなく1時間ぐらい時間を使った気がする。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?