# ./bin/deploy.sh staging myparentdomain.com - Error permission denied '/srv/www/myparentdomain.com'

**URL:** https://discourse.roots.io/t/bin-deploy-sh-staging-myparentdomain-com-error-permission-denied-srv-www-myparentdomain-com/9345
**Category:** trellis
**Created:** 2017-04-09T18:21:42Z
**Posts:** 8

## Post 1 by @s3w47m88 — 2017-04-09T18:21:42Z

I’m attempting to setup a brand new site, on a brand new Mac, and after running `/.bin/deploy.sh staging myparentdomain.com` I get this:

> <https://gist.github.com/s3w47m88/0c342c9c44407327a33d96cbc10906d7>

While I understand it is a write error, there’s no details on why this issue is occurring.

---

## Post 2 by @MWDelaney — 2017-04-09T18:26:29Z

> [@Trouble Setting Up SSH Forwarding, I think](https://discourse.roots.io/t/trouble-setting-up-ssh-forwarding-i-think/9312/2):
>
> Trellis regenerates the server’s key after initial provisioning. Remove the server’s entry from ~/.ssh/known\_hosts and deploy again.

---

## Post 3 by @s3w47m88 — 2017-04-09T18:31:57Z

Thanks for the reply.

However, I don’t understand what lead you to believe this is related? Also, I went ahead and removed the entry from known\_hosts anyway and re-ran but am getting the same result.

---

## Post 4 by @MWDelaney — 2017-04-09T18:33:46Z

A deploy error with “Permission Denied” is often either a key mismatch error or a DNS error.

---

## Post 5 by @s3w47m88 — 2017-04-09T18:36:21Z

Maybe I’m wrong and overlooking something, but I don’t believe that’s correct because this error is occurring after it’s already stated it successfully connected to the server. I am able to manually connect via `ssh web@myparentdomain.com` as well.

It looks, to me, like it’s a read/write error when trying to do something on the server itself.

Knowing that do you still think it’s key / DNS?

---

## Post 6 by @ben — 2017-04-09T18:54:17Z

I think you’re setting a record for number of topics created on here. Can you please just buy a call with Phil already so that you can get all of your Trellis issues sorted out? :stuck_out_tongue_winking_eye:

> **[Services | Hire the Roots Team | Roots](https://roots.io/services/)**
>
> We’re experts at implementing the Roots tools and can help you establish best practices within your own projects. Need help? Schedule a call with us.

---

## Post 7 by @ben — 2017-04-09T18:54:20Z



---

## Post 8 by @s3w47m88 — 2017-04-09T18:55:05Z

I forgot that was an option. Yes. :slight_smile: Thank you and sorry. :slight_smile:
