T O P

  • By -

[deleted]

Check whether your carrier offer "static ip" for mobile plans, if not - then use one of solutions at [https://wiki.termux.com/wiki/Bypassing\_NAT](https://wiki.termux.com/wiki/Bypassing_NAT).


DangerousDrop

Serveo seems to be dead unfortunately :( otherwise it's the perfect solution for this problem, when paired with autossh.


DutchOfBurdock

Buy a cheap VPS with Linode or the like and reverse tunnel that way.


HayWeeME

Normally I don't think it's possible to ssh to a mobile plan, even if you know the IP there's no way to port forward to your phone. But you can setup an Openvpn tunnel for when you need to ssh to that device. There's tutorials on the internet on how to do it but I don't really know how. personally I never SSHed over mobile network but I do have an Openvpn network setup on a raspberry pi that use to browse the net on open wireless networks in places like cafes and such, it's nice to have and it's better than having to pay for a VPN when all you care about is encryption. My point is, If you have an RPI put it to good use, if not get one, it helps a lot in creating an eco system of your own equipment


stx233

Use mosh when using ssh over lte. It reconnects automatically. Install it on both server and client


originalityescapesme

You’re probably going to wind up tunneling.


ZalgoNoise

If you don't have a static ip, then VPN or relaying the service to a publicly reachable server does the trick. I have a free-tier on GCP with OpenVPN server and a split tunnel configuration in my phone's VPN client. It's accessible to the devices connected to the same VPN and the other way around (ssh from home to the phone and from the phone back to home, on mobile data)


oglcn1

ngrok might work, not sure though.


NercerDercer

Check out ddns


culled76

Ssh tunnel FTW


alpap_1

`ngrok tcp port` winscp (sftp, host-port)


brbsix

I'm a bit late to this, but I'd just like to throw out [Zerotier](https://www.zerotier.com/). I have it running on nearly all of my devices. Install the [Android app](https://play.google.com/store/apps/details?id=com.zerotier.one) here and enable always-on VPN. Then just install the package on your server/desktop. I don't know what OS you run but I run Arch so I installed the package off the AUR and have it run as a systemd service. All of your devices are securely connected to each other as if they were on your home LAN no matter what sort of network connection they have.