Default: SSH auth method: private key

Trellis is hanging up on default: SSH auth method: private key when trellis up.
Vagrant version: 2.3.4
Mac OS 12.3

LOG

If the problem persists, please report a bug to the net-ssh project.
timeout during server version negotiating>
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO ssh: Attempting SSH connection...
 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/jack/sites/polishnationalunion.ca/trellis/.vagrant/machines/default/virtualbox/private_key"]
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO ssh: SSH not ready: #<Vagrant::Errors::NetSSHException: 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.

This is a fairly low quality post without any details that would make it easier for people to help you:

  • It’s missing OS version and Vagrant version details
  • It doesn’t include any log output
  • It doesn’t explain what you’ve tried so far to fix it

Anyway, here’s a Stackoverflow question with a lot of details and potential solutions to this: Vagrant ssh authentication failure - Stack Overflow

My apologies, I am using vagrant version 2.3.4. OS 12.3.1 I don’t really know where to start this trellis instance has worked fine for me for a month I opened my computer this morning without making any changes other than trellis up.

My log when I vagrant up

If the problem persists, please report a bug to the net-ssh project.
timeout during server version negotiating>
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO ssh: Attempting SSH connection...
 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/jack/sites/polishnationalunion.ca/trellis/.vagrant/machines/default/virtualbox/private_key"]
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "c701ba75-87fc-4eed-86f0-be13056ce0dd", "--machinereadable"]
 INFO subprocess: Command not in installer, restoring original environment...
 INFO ssh: SSH not ready: #<Vagrant::Errors::NetSSHException: 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.

Did you try rebooting? Can you destroy + recreate the Vagrant box (you’ll lose data though)?