# Trouble Setting Up SSH Forwarding, I think

**URL:** https://discourse.roots.io/t/trouble-setting-up-ssh-forwarding-i-think/9312
**Category:** trellis
**Created:** 2017-04-04T23:29:37Z
**Posts:** 17
**Showing post:** 4 of 17

## Post 4 by @fullyint — 2017-04-05T00:38:23Z

**1)** @s3w47m88 Could you post the complete and verbose output (add `-vvvv`)?

```
ansible-playbook deploy.yml -e env=staging -e site=staging.OMITTED.com -vvvv
```

**2)** It looks like you’re using the default [`web_user`](https://github.com/roots/trellis/blob/41b7f641d650af26d51800943045b5a412763168/group_vars/all/users.yml#L19) so could you SSH in to the server as the `web` user, run this command, and share the output?

```
web@staging.OMITTED.com:~$ ls -alh /home/web/.ssh

drwx------ 2 web www-data 4.0K Mar 30 19:24 .
drwxr-xr-x 7 web www-data 4.0K Mar 30 19:24 ..
-rw------- 1 web www-data 399 Mar 30 18:43 authorized_keys
-rw-r--r-- 1 web www-data 2.1K Apr 1 01:54 known_hosts
```

We need to be sure that the `/home/web/.ssh/known_hosts` file exists and has permissions and ownership that will work for the `web` user (`-rw-r--r-- 1 web www-data`). If the file presence, permissions, or ownership differ from above, it will be helpful if you share any ideas on how such defaults might have been changed, and share which cloud hosting you’re using (e.g., DigitalOcean, AWS, etc.) and which base Ubuntu image you’re using from that provider.

**3)** Could you ensure your version of Trellis includes known\_hosts-related updates from [roots/trellis#799](https://github.com/roots/trellis/pull/799)?

* * *

The `known_hosts` feature is not essential for all users. You may not need it. To temporarily get past this blocking task in your deploy, you could try commenting out the list of [`known_hosts`](https://github.com/roots/trellis/blob/41b7f641d650af26d51800943045b5a412763168/group_vars/all/known_hosts.yml#L6-L14) and add this empty list definition just above or below:

```
known_hosts: []
```

Here is more conceptual [info on known\_hosts](https://discourse.roots.io/t/known-hosts-yml-headaches/8867/4) as related to this task in Trellis.

---

_[View the full topic](https://discourse.roots.io/t/trouble-setting-up-ssh-forwarding-i-think/9312)._
