3

I have a Raspberry Pi computer in the field with a USB modem stick (Huawei E5372). Sim card doesn't accept incoming requests, all ports are disabled by ISP.
I already have access from my desktop using Teamviewer but I want to have my own free ssh access.
I have a no-ip domain because of dynamic IP pointing to RPi.
Is it possible accomplish that in a similar way that Teamviewer does?

EDIT 1: I would need ssh access to RPi from my desktop (Ubuntu) or from my laptop (Win 10)

dstonek
  • 173

1 Answers1

6

If you're not sure all ports are blocked, the first thing I would do is check if any ports are open, using a utility like nmap.

If all ports really are blocked, one method is to create an outbound ssh tunnel from your Raspberry Pi to another computer and use that tunnel to ssh in, using port forwarding. If you have a machine at computer.domain.com, you can create this connection by running the following command on your Raspberry Pi:

ssh -R 2222:localhost:22 computer.domain.com

Then from that computer, you can ssh into your Raspberry Pi with:

ssh -p 2222 localhost

Feel free to change 2222 to any open port.

If you're not going to have easy access to your Raspberry Pi, it would be wise to use some solution to monitoring the ssh tunnel to make sure it stays open. You can see this question for some options for that.

Chris
  • 281