Git は Bitbucket へのプッシュで問題なく動作していましたが、最近まで DNS サーバーの設定の変更を除いて大きな変更はありませんでした。
エラー:
許可が拒否されました (公開鍵)。
致命的: リモート リポジトリから読み取れませんでした。正しいアクセス権があり、リポジトリが存在することを確認してください。
keygen を使用して新しいキーを作成し、Git Bash でキーを追加し (キーが追加されて受け入れられました)、そのキーを手動で Bitbucket SSH に追加しました。ただし、それでも同じエラーが発生します。
何がうまくいかなかったのかわからない、誰か同じ経験をして助けてくれる人はいますか?
その他の情報またはトラブルシューティングの試み
git remote -v
、ワンプッシュ、ワンプル 記載の商品ssh -T git@bitbucket.org
- エラー: 許可が拒否されました (公開鍵)。ssh-add -l
- エラー: 認証エージェントへの接続を開けませんでした。ssh -vT git@github.com
- 以下のエラー
ssh -Tv git@bitbucket.org OpenSSH_6.6.1、OpenSSL 1.0.1i 2014 年 8 月 6 日
debug1: Connecting to bitbucket.org [131.103.20.167] port 22.
debug1: Connection established.
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_rsa-cert type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: identity file /.ssh/id_dsa-cert type -1
debug1: identity file /.ssh/id_ecdsa type -1
debug1: identity file /.ssh/id_ecdsa-cert type -1
debug1: identity file /.ssh/id_ed25519 type -1
debug1: identity file /.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 97:8c /* rest of numbers */
debug1: Host 'bitbucket.org' is known and matches the RSA host key.
debug1: Found key in /.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /.ssh/id_rsa
debug1: Trying private key: /.ssh/id_dsa
debug1: Trying private key: /.ssh/id_ecdsa
debug1: Trying private key: /.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).
- ssh-agent -s
、エラー:
SSH_AUTH_SOCK=/tmp/ssh-2KEE1p8SGXPg/agent.1900; export SSH_AUTH_SOCK; SSH_AGENT_PID=2712; export SSH_AGENT_PID; echo Agent pid 2712;