Skip to content

Conversation

yasulab
Copy link
Member

@yasulab yasulab commented Sep 5, 2025

問題

原因

  • 通常版UbuntuはCloud-initをサポートしていない
  • disk/config APIでSSH鍵設定済みなのに、cloud-initで二重設定していた

修正内容

  • _copying_imageメソッドからcloud-init設定を削除
  • サーバー起動時は単純にpower APIを呼ぶだけに変更
  • SSH鍵とスタートアップスクリプトはdisk/config APIで設定済み

テスト

  • coderdojo-japanサーバーを削除して再作成
  • SSH接続が正常に動作することを確認予定

問題:
- 通常版UbuntuでSSHポート22が接続できない
- cloud-init非対応の通常版Ubuntuでcloud-initを使用していた
- disk/config APIでSSH鍵設定済みなのに、cloud-initで二重設定

解決:
- _copying_imageメソッドをシンプルに修正
- disk/config APIによるSSH鍵設定のみ使用
- サーバー起動時にcloud-init設定を送信しない

これにより通常版UbuntuでSSH接続が正常に動作するようになる
@yasulab yasulab merged commit 8592ec5 into main Sep 5, 2025
4 checks passed
@yasulab yasulab deleted the fix-ssh-connection-issue branch September 5, 2025 04:24
github-actions bot pushed a commit that referenced this pull request Sep 5, 2025
yasulab added a commit that referenced this pull request Sep 5, 2025
- サーバー名の追加情報を削除
- PR番号のみを含む簡潔なメッセージに
- PR番号があればGitHubで詳細確認可能

変更前: Deploy from actions (PR #259) - Added: Name,coderdojo-akita
変更後: Deploy from actions (PR #259)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant