Trellis Up command times out at vagrant ssh auth setup and VM will not boot.

Currently I am trying to setup a local development environment from which to provision and deploy a site to Digital Ocean from.

My local dev environment is a MacBook Pro M2 Max, using Parallels Desktop with Trellis for provisioning and deployment.

When I run Trellis Up the process creates a VM and begins to setup the Vagrant user however the process stalls at the task, "default: SSH auth method: private key. Then it times out and fails.

This is the first time I have run into this issue and can’t quite see the cause of the issue.

Any advice and insight would be greatly appreciated.

I found this post about something similar: Provisioning of server works fine deployment fails for production trellis ssh fails .

I followed the steps to update the ssh config file and add the key to the ssh agent. When I ran the command “trellis up” again the VM was built and is ready for use.

Update: With the VM “up and running” I then tried to ssh into it but the process would just sit there after running “vagrant ssh” so I assume this is NOT working correctly. Then I deleted the VM and re-ran “trellis up” and now I am back to the same issue as before where the "trellis up " process hangs at the default: SSH auth method: private key.

1 Like

And trellis/group_vars/all/users.yml is pointing correctly to your public ssh keys? See SSH Keys | Trellis Docs | Roots . Perhaps also good to share verbose log of the provisioning of the Vagrant box. Thread https://discourse.roots.io/t/trellis-on-windows-vagrant-up-hangs-on-ssh-auth-method-private-key/8735 may also help.