# Ssh tunnel : permission denied

**URL:** <https://forum.legato.io/t/ssh-tunnel-permission-denied/5177>\
**Category:** Legato Application Framework\
**Created:** [April 27, 2020, 2:50pm UTC](https://forum.legato.io/t/ssh-tunnel-permission-denied/5177 "2020-04-27T14:50:54Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Kumikomi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/kumikomi/32/924_2.png) [@Kumikomi](https://forum.legato.io/u/Kumikomi)\
**Post date:** [May 1, 2020, 9:40am UTC](https://forum.legato.io/t/ssh-tunnel-permission-denied/5177/10 "2020-05-01T09:40:42Z")

</div>

Hello,

Finally it works 🙂

I investigate in legato build first because it was less invasive that rebuilding kernel.  
I followed instruction to build legato and update my board: success.

So add admin right to an application, go to

```
framework/daemons/linux/supervisor/app.c

```

find

```
frameworkAppList

```

and add your app name in this list.

In the if following **if** condition add the needed smack rule.

```
else if (0 == strcmp(frameworkAppList[i], "app.myapp"))
{
    smack_SetRule(frameworkAppList[i], "w", "admin");
 }

```

By doing that, I had my ssh tunnel.

My next step will be to provide a clean sshTunel.api in my custom framework.

thanks @jyijyi for your time and the help you provided.  
It will be a pleasure for me to help anyone who’ll face the same kind of issues.

---

_[View the full topic](https://forum.legato.io/t/ssh-tunnel-permission-denied/5177)._
