Cursor と Replit の SSH 接続ガイド
ヒント
SSH を使用して Cursor を Replit プロジェクトに接続し、シームレスな開発体験を実現しましょう。
前提条件
始める前に、以下のものが揃っていることを確認してください:
- Cursor がインストールされていること
- Replit アカウント
- SSH クライアントがインストールされていること
- ターミナルコマンドの基本的な理解
SSH キーの設定
1. SSH キーの生成
- Windows
- macOS/Linux
# SSH キーを生成
ssh-keygen -t ed25519 -C "[email protected]"
# SSH エージェントを起動
Start-Service ssh-agent
ssh-add $env:USERPROFILE\.ssh\id_ed25519
# SSH キーを生成
ssh-keygen -t ed25519 -C "[email protected]"
# SSH エージェントを起動
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
2. Replit にキーを追加
-
公開キーをコピー:
# Windows
type $env:USERPROFILE\.ssh\id_ed25519.pub
# macOS/Linux
cat ~/.ssh/id_ed25519.pub -
Replit に追加:
- Replit の設定に移動
- SSH キーセクションに移動
- 公開キーを貼り付け
- 変更を保存
Cursor の設定
1. SSH 設定ファイルの作成
~/.ssh/config
を作成または編集:
~/.ssh/config
Host replit
HostName ssh.replit.com
User your-replit-username
IdentityFile ~/.ssh/id_ed25519
ForwardAgent yes
2. 接続テスト
# SSH 接続をテスト
ssh replit