# Reverse SSH to device

**URL:** <https://forums.balena.io/t/reverse-ssh-to-device/367942>\
**Category:** Product support\
**Tags:** support\
**Created:** [May 16, 2023, 12:11pm UTC](https://forums.balena.io/t/reverse-ssh-to-device/367942 "2023-05-16T12:11:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seyediman\_saberifath](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@seyediman\_saberifath](https://forums.balena.io/u/seyediman_saberifath)\
**Post date:** [May 16, 2023, 12:11pm UTC](https://forums.balena.io/t/reverse-ssh-to-device/367942/1 "2023-05-16T12:11:29Z")

</div>

Hello!  
I found the following sample SSH tunnel.

> **[GitHub - balena-io-experimental/simple-ssh-tunnel: Example of setting up a...](https://github.com/balena-io-experimental/simple-ssh-tunnel)**
>
> Example of setting up a reverse ssh tunnel using resin.io - GitHub - balena-io-experimental/simple-ssh-tunnel: Example of setting up a reverse ssh tunnel using resin.io

Is it possible to open a port for a specific host and connect to the device?  
I’m considering a reverse SSH connection from device to host.

---

<div class="post-metadata">

**Author:** ![pranasziaukas](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/pranasziaukas/32/3917_2.png) [@pranasziaukas](https://forums.balena.io/u/pranasziaukas)\
**Post date:** [May 24, 2023, 1:15pm UTC](https://forums.balena.io/t/reverse-ssh-to-device/367942/3 "2023-05-24T13:15:56Z")

</div>

Hi. If possible, we’d recommend the following standard ways of establishing SSH access:

- [SSH access - Balena Documentation](https://docs.balena.io/learn/manage/ssh-access/#using-balena-ssh-from-the-cli) – `balena ssh`, the most straightforward way to access the host or a service container
- [SSH access - Balena Documentation](https://docs.balena.io/learn/manage/ssh-access/#using-a-standalone-ssh-client) – regular `ssh`, alternative to the above
- [SSH access - Balena Documentation](https://docs.balena.io/learn/manage/ssh-access/#balena-tunnel) – `balena tunnel`, to create a tunnel between your machine and a balena device
