github - 关于git push没有权限的问题,已设置公钥
伊谢尔伦
伊谢尔伦 2017-05-02 09:24:04
0
1
711

首先呢,我已经弄好了ssh的密钥,ssh -T git@githun.com是可以的,返回:
Hi xxxxxx! You've successfully authenticated, but GitHub does not provide shell access.
但是,当我想要git push的时候,总是失败,提示是:
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: xxxxxxxxxxxx
请问这是什么情况,

我执行的是
git remote add origin git@github.com:xxxxxxx/test.git
git push -u origin master

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

全員に返信(1)
仅有的幸福

Gitのユーザー名とメールアドレスを設定します

リーリー

SSHキーを生成する

リーリー

SSH にキーを追加します: ssh-add ファイル名。その前にパスワードを入力する必要があります。

github に ssh キーを追加します。追加する必要があるのは、「id_rsa.pub」の公開キーです。

https://github.com/ を開いて設定にキーを追加します
リーリー

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!