%20%E6%B2%A1%E6%9C%89%E8%BF%99%E6%A0%B7%E7%9A%84%E6%96%87%E4%BB%B6%E6%88%96%E7%9B%AE%E5%BD%95%E2%80%9D%E9%94%99%E8%AF%AF.png)
不知道发生了什么。但是突然间我无法在 GitHub 中推送更新。一个月前,我使用 SSH 密钥将 VS Code 与 Github 集成,这样我就不必每次在将更新推送到 Git 存储库时都输入电子邮件和密码。
我认为 BleachBit 删除了一些重要文件,并且发生了这种情况。 但这是我的胡乱猜测。我无法确认这一点。因为除了这个我什么都没做。VS Code 以前工作正常。突然就发生这种情况了。我得小心使用 Bleachbit如果这是 Bleachbit 的行为。
与此同时,我花了一周时间思考如何解决这个问题。如果你也遇到过这个问题,那就把它注释掉吧。
当我这样做时ls /usr/bin/ssh-askpass
,它说没有文件或文件夹。这可能是问题的原因。但我确实看到了里面的这些文件夹/usr/bin与ssh相关:
ssh ssh-add //is a file that supposed to be deleted when I unistalled ssh-askpass ssh-agent //is a file ssh-argv0 ssh-copy-id ssh-keygen ssh-keyscan
答案1
我必须做两件事来解决这个问题。
正如@Wan-Chap 上面所说
sudo apt install ssh-askpass
使用此命令添加 bitbucket.org(在我的情况下是 Bitbucket)
ssh-keyscan -t rsa bitbucket.org >> ~/.ssh/known_hosts
答案2
似乎你的 ssh-askpass 丢失了。只需通过以下方式重新安装它:
sudo apt install ssh-askpass