我正在尝试运行这个简单的配置脚本,但在运行vagrant up
和vagrant provision
命令时遇到错误。
我读到我需要创建一个/etc/ansible/hosts
我已经完成的文件,并用以下内容填充它:
[vagrant]
192.168.222.111
Run Code Online (Sandbox Code Playgroud)
我的 SSH 配置(删除了一些细节):
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/ashleyconnor/.vagrant.d/insecure_private_key
IdentitiesOnly yes
LogLevel FATAL
Host server
HostName XXX.XXX.XXX.XXX
User ash
PreferredAuthentications publickey
IdentityFile ~/.ssh/ash_ovh
Host deployer
HostName XXX.XXX.XXX.XXX
User deployer
PreferredAuthentications publickey
IdentityFile ~/.ssh/deployer_ovh
Host bitbucket.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/bitbucket
Host github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/github
Host staging
HostName 192.168.56.10
User deployer
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Run Code Online (Sandbox Code Playgroud)
我收到的 …
我们遇到了一个问题,即通过 ssh 发出的一系列 git 请求有时会失败
ssh_exchange_identification: Connection closed by remote host
在 SE/SF 上有很多结构问题的例子(tcp-wrappers,关键文件的权限)。
我们的问题是:此消息出现间歇性连接失败的可能原因是什么?