ruffinmedia
Posts: 32
Joined: Sat May 11, 2013 11:43 am

Connected to a Raspi remotely and accessing connected consol

Sat May 11, 2013 11:53 am

I'm new to linux but want to know if there's a way to login to a Raspberry Pi that's over the internet and connected to a router with a dynamic IP. I configure solar equipment and the only way to configure it is to plug a computer into port 2 and access the solar console (that can only be reached locally). Im trying to come up with a remote way by leaving a computer connected to port 2 and remote into it. I was thinking that I could setup an SSH Tunnel to the pi and access the pi's connections. The worst case scenario would be to log in (with something like teamviewer) and launch a webpage from inside the Raspi. Anyone have any ideas?

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: Connected to a Raspi remotely and accessing connected co

Sat May 11, 2013 2:09 pm

Been there, done that :-)

http://www.linux.org.au/conf/2009/slides/149.odp

I've used both ssh tunnels (check out 'autossh') and OpenVPN to connect through a 3G network.

Both worked very nicely.

ruffinmedia
Posts: 32
Joined: Sat May 11, 2013 11:43 am

Re: Connected to a Raspi remotely and accessing connected co

Sun Jul 07, 2013 2:02 am

OMG this is awesome. I have so many questions about your project. Are you still working on it? I'm using an ssh tunnel and dyndns account but its very problematic. I'm trying to install ddclient on the pi so it will constantly update the its dns settings. How did you address that issue with 3g technology?

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: Connected to a Raspi remotely and accessing connected co

Sun Jul 07, 2013 5:08 am

The project has been mothballed but I'm happy to answer questions.
In my setup the SSH/OpenVPN server was hosted on a static IP address.
The 3G client was dynamic and NAT-ed but that didn't matter; once the SSH tunnel/VPN was established the server could route traffic to the client (and bejond) at will.

ruffinmedia
Posts: 32
Joined: Sat May 11, 2013 11:43 am

Re: Connected to a Raspi remotely and accessing connected co

Sun Jul 07, 2013 8:34 am

You said your 3g was a dynamic IP but you were able to get a static. How did you do that? I have a dynamic and using dyndns. I also installed ddclient on the pi so hopefully that will work.

ideally id like to plug my 3g hotspot router into my pi via usb and connect via tethered mode but i cant figure it out.

Return to “Advanced users”