cbrereton
Posts: 11
Joined: Thu Sep 03, 2015 1:39 pm

SSH Into Raspberry Pi from Ubuntu Virtual Machine

Thu Jun 09, 2016 1:31 pm

I have a Raspberry Pi 2 Model B that is connected to the internet via a 3g dongle. I would like to be able to access this Pi remotely from my desktop computer.
I'm aware that the Pi cannot be directly accessed over SSH, since the 3g network provider's ISP blocks all incoming communication. Therefore, to access it, I need to reverse tunnel from the pi to a SSH server, which I'm led to believe is much easier to start on a Linux system.
Unfortunately my desktop computer is a Windows machine, so to get round this I have installed an Ubuntu virtual machine.

Before I start trying to connect to my Pi over SSH, I ask, do you think it is possible to set up my Ubuntu VM as a SSH server and reverse tunnel into it from my Pi?

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: SSH Into Raspberry Pi from Ubuntu Virtual Machine

Thu Jun 09, 2016 1:40 pm

Have you considered a Cloud Solution like Weaved ??

https://www.weaved.com/raspberry-pi-remote-connection
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

mthomason
Posts: 113
Joined: Sun Apr 24, 2016 12:28 pm

Re: SSH Into Raspberry Pi from Ubuntu Virtual Machine

Thu Jun 09, 2016 1:42 pm

Yes, you should be able to do it with a VM as long as you're able to port-forward from your router to the Ubuntu VM (or otherwise allow it direct internet access) that should work fine. I'd advise using bridging rather than NAT for the connection between the PC and the Ubuntu VM, to ensure you can connect directly to it from the router and not have to traverse between IP networks twice.

Return to “General discussion”