我正在尝试将远程 github 存储库配置为 salt 服务器根目录,但它无法使用 pub/priv 密钥对成功进行身份验证。我也给出了/etc/salt/master文件中键的位置。
以下是我得到的日志:
2018-11-05 01:48:32,197 [salt.utils.gitfs :1574][ERROR ][21391] Error occurred fetching gitfs remote 'git@[github-endpoint].git': failed to start SSH session: Unable to exchange encryption keys
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/gitfs.py", line 1552, in _fetch
fetch_results = origin.fetch(**fetch_kwargs)
File "/usr/lib64/python2.7/site-packages/pygit2/remote.py", line 405, in fetch
File "/usr/lib64/python2.7/site-packages/pygit2/errors.py", line 64, in check_error
GitError: failed to start SSH session: Unable to exchange encryption keys
我已经检查了密钥对和与 github 端点的连接。我可以在服务器中手动同步 repo。