問題
SequelProを使ってEC2→RDSに接続できない
詳細
https://qiita.com/Ogaaaan/items/b0e0706cfaa42bccccb0
こちらの記事を見ながら、EC2からRDSへの接続を試みてますが、エラーで弾かれてしまいます。
エラー文
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:******************************************* debug1: Host '**.**.**.**' is known and matches the ECDSA host key. debug1: Found key in /Users/hogehoge/.ssh/known_hosts:15 debug1: rekey after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey after 134217728 blocks debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering RSA public key: /Users/hogehoge/.ssh/id_rsa debug1: Authentications that can continue: publickey debug1: Trying private key: /Users/hogehoge/.ssh/id_dsa debug1: Trying private key: /Users/hogehoge/.ssh/id_ecdsa debug1: Trying private key: /Users/hogehoge/.ssh/id_ed25519 debug1: No more authentication methods to try. Permission denied (publickey).
補足
①chmod 600
上記の記事に鍵が弾かれる場合、パーミッションがちゃんと600になってるか確認する
とあったので、EC2にログイン後、
chmod 600 ~/.ssh/authorized_keys
を行いました
以上です。何かアドバイスできる方いましたら、教えていただけると助かりますm(_ _)m
どうぞよろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。