OSX で vagrant up したとき「If the problem persists, please report a bug to the net-ssh project.」

OSX で vagrant up したとき「If the problem persists, please report a bug to the net-ssh project.」

OSX で vagrant up したとき「If the problem persists, please report a bug to the net-ssh project.」

OSX で vagrant up したとき「If the problem persists, please report a bug to the net-ssh project.」
最終更新日:2021.01.26

OSX で vagrant up したときに、下記のようなメッセージが出て止まってしまった時の解決法です。

エラーコード

An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.

If the problem persists, please report a bug to the net-ssh project.

timeout waiting for next packet

どうやらSSHのライブラリでエラーが出ている模様。

解決策

Vagrantfileファイルに以下の分を追加。

Vagrantfile

コピー


  config.ssh.private_key_path = ["~/.vagrant.d/insecure_private_key"]
  config.ssh.insert_key = true

SSHのプライベートキーの場所を教えてあげるのと、タイムアウト時間の変更、不要なステータスを使用しないように変更。
再度vagrant upをすると起動しました!良かった〜。