前段时间尝试 homestead 的 vagrant 镜像,今天遇到一个奇怪的问题,我 homestead 中安装了 oh-my-zsh, 今天把 zsh 给删了,重启 homestead 之后就无法 ssh 链接上了
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 (guest) => 8000 (host) (adapter 1)
default: 443 (guest) => 44300 (host) (adapter 1)
default: 3306 (guest) => 33060 (host) (adapter 1)
default: 5432 (guest) => 54320 (host) (adapter 1)
default: 9200 (guest) => 65535 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
有高手遇到过这个问题吗,求解决
1
wzyefd 2016-03-22 12:54:29 +08:00
看错误提示是 homestead 上面的公钥被删除了,确认一下 homestead.yaml 里面的 authorize 是否正确,莫非卸载 zsh 会删除.ssh 文件夹?没有试过不知道,是在不行重装一个吧。
|