在今天的上传过程中,我意外地遇到了一个问题,,每一次push都会出现 $ git push origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 大致意思就是我登不上自己的账户了?(发生了什么???) 冷静分析,全…
在使用GitHub的时候,为了避免每次输入用户名密码,都会使用SSH方式代替Https. 按网上教程,大多数使用SSH-KeyGen生成公私钥对,而后上传公钥至Github,并切换Repositorie为SSH. 使用SSH-KeyGen输出如下: Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory ‘/root/.ss…
再次遇到 SSH Server And "Permission denied (publickey) 用这个关键词搜索才找到howtogeek上答案: sshd : Authentication refused: bad ownership or modes for directory / 直接用我文章题目中的搜索,这次不管用. 看log $ grep sshd /var/log/audit/audit.log 这个命令很有用.它会告诉你原因. May 17 16:21:25 localhost…