,當我在我的應用程序運行vagrant up
過程中被卡在SSH和流浪
SSH auth method: private key
Vagrantfile
Vagrant.configure(2) do |config|
config.vm.define :touch_rugby do |app_config|
app_config.vm.box = "bento/ubuntu-16.04"
app_config.vm.host_name = "touchrugby"
app_config.vm.network "private_network", ip: "33.32.1.2"
app_config.ssh.insert_key = true
end
end
當在另一個窗口
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/rich/.vagrant.d/insecure_private_key
IdentitiesOnly yes
LogLevel FATAL
將在什麼地方insecure_private_key運行vagrant ssh-config
來自?並應該不是私鑰
我可以看看什麼來嘗試和調試呢?我運行在調試模式vagrant,並發現這
INFO ssh: Attempting to connect to SSH...
INFO ssh: - Host: 127.0.0.1
INFO ssh: - Port: 2222
INFO ssh: - Username: vagrant
INFO ssh: - Password? false
INFO ssh: - Key Path: ["/Users/rich/.vagrant.d/insecure_private_key"]
DEBUG ssh: - connect_opts: {:auth_methods=> ["none "hostbased""publickey"],
:config=>false,
:forward_agent=>false,
:send_env=>false,
:keys_only=>true,
:paranoid=>false,
:password=>nil,
:port=>2222,
:timeout=>15 }
INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "1f000e35-eee4-482d-8f76-91082f19c2ab", "--machinereadable"]
有沒有人有什麼進一步的想法,我可以做什麼?
感謝
我很感激我的更新問題,你的答案後,但我有'app_config.ssh.insert_key = TRUE;在我的配置應該替換這個關鍵 – Richlewis
我不敢肯定我明白你的問題。通過將其設置爲true,您會告訴流浪者生成自己的密鑰。 –