# SSH Tunnel

**URL:** <https://community.convox.com/t/ssh-tunnel/481>\
**Category:** CLI\
**Created:** [April 2, 2019, 4:20pm UTC](https://community.convox.com/t/ssh-tunnel/481 "2019-04-02T16:20:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amir.ravandi](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@amir.ravandi](https://community.convox.com/u/amir.ravandi)\
**Post date:** [April 2, 2019, 4:20pm UTC](https://community.convox.com/t/ssh-tunnel/481/1 "2019-04-02T16:20:43Z")

</div>

Hi there, As you know we don’t have access to the key-pair to connect to our instances. So the solution is using convox CLI “convox instances ssh INSTANCE\_ID”. I’m wondering to know if it possible to create an SSH tunnel with local forwarding to one of the instances?

---

<div class="post-metadata">

**Author:** ![julian](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/julian/32/35_2.png) [@julian](https://community.convox.com/u/julian)\
**Post date:** [July 30, 2019, 11:54pm UTC](https://community.convox.com/t/ssh-tunnel/481/2 "2019-07-30T23:54:40Z")

</div>

I don’t think there is local port forwarding, but in case this is helpful for anyone:

Obviously you can get a shell in your application with

`cx run process /bin/bash`  
or `cx exec abcdefgh1234 /bin/bash`

If you need to copy a file to your process, pipes work over `run` and `exec` so you can do:

`cat myfile.txt | cx run process 'cat > /my_volume/myfile.txt'`  
or `cat myfile.txt | cx exec abcdefgh1234 'cat > myfile.txt'`  
to get a file onto a process. It’s a bit clunky but it will do in a pinch.

You can also proxy resource ports locally with `cx resources proxy`.

And you can always spin up a new EC2 instance in the rack’s VPC if you just need a workspace behind the firewall.

This doesn’t cover all use-cases, but between these 4 things, we haven’t needed SSH access yet.

---

<div class="post-metadata">

**Author:** ![amir.ravandi](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@amir.ravandi](https://community.convox.com/u/amir.ravandi)\
**Post date:** [November 13, 2019, 2:28pm UTC](https://community.convox.com/t/ssh-tunnel/481/3 "2019-11-13T14:28:14Z")

</div>

Thanks
