簡體   English   中英

無法將代碼推送到github存儲庫

[英]Unable to push code to a github repository

我無法將我的更改推送到github存儲庫,並收到以下錯誤消息 -

D:\Research\scribe-java>git push git@github.com:fernandezpablo85/scribe-java.git master
The authenticity of host 'github.com (207.97.227.239)' can't be established.
RSA key fingerprint is -----.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
D:\Research\scribe-java>git push git@github.com:fernandezpablo85/scribe-java.git master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

任何人都可以幫我理解我在這里做錯了什么......?

僅從該錯誤看起來您的私鑰無效。 你有沒有把你的公鑰添加到github?

另外: Github Permission被拒絕

也許您已經使用超級用戶權限創建了密鑰,現在您無法使用它,因為您是普通用戶。

首先使用創建ssh密鑰

$ ssh-keygen -t rsa

密鑰在〜/ .ssh / id_rsa.pub中創建,復制該密鑰並添加到github。 也許它會起作用

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM