问题是,应用程序需要通过ssh连接到外部服务器。因为docker绑定了当前用户的ssh文件,所以它应该允许我从容器ssh到服务器。然而,它给了我Bad owner or permissions on /root/.ssh/config错误。据我所知,docker是以我的ubuntu用户身份运行的,它是1001,并且试图访问root帐户ssh文件(我可能是错的),这就是为什么它给我这个错误。
请确保您将私钥添加到ssh首选项中。我遵循了以下步骤- 1.在Eclipse中转到窗口-> Preferences -> General -> Network Connection -> SSH2 ->密钥管理2.生成RSA密钥3.将公钥内容粘贴到Please make sure that you added your private key to the ssh preferences.org.eclipse.jgit.errors.TransportException: