# Failed to connect to the host via ssh: admin@xxx.xxx.xxx.xxx: Permission denied (publickey)

**URL:** https://discourse.roots.io/t/failed-to-connect-to-the-host-via-ssh-admin-xxx-xxx-xxx-xxx-permission-denied-publickey/11191
**Category:** trellis
**Created:** 2017-12-27T05:32:30Z
**Posts:** 4
**Showing post:** 4 of 4

## Post 4 by @jasperfrumau — 2017-12-27T08:27:46Z

> [@fullyint](#):
>
> It appears you are using Ansible 2.3.2 without related compatibility updates for Trellis. I think you either need to rollback your Ansible using pip install ansible==2.2.3.0 or update your Trellis. Then do the ssh-keygen -R again for both the IP and domain and try to provision.

Thank you so much @fullyint ! Doing a setup with Ansible downgrade now. And it is running! Never thought it was related to the Trellis connect test always showing root as failing to connect.

Will upgrade to latest Trellis so I can avoid these issues and use the latest Ansible in the future. And to have a peace of mind. Been doing so much yesterday with `ssh-add -l`,` ssh-add -D`, `ssh-add -K`, `ssh-keygen -R`, `ECDSA` and reading on SSH and SSHD that I was going mental…Thanks again!

---

_[View the full topic](https://discourse.roots.io/t/failed-to-connect-to-the-host-via-ssh-admin-xxx-xxx-xxx-xxx-permission-denied-publickey/11191)._
