Reputation: 23
I am trying to connect remotely to my RPI Zero2W from my desktop.
Here is the current environment
Due to these complicated connection requirements I have not been able to connect remotely to my RPI at all.
The internet suggests various solutions:
Upvotes: 1
Views: 424
Reputation: 1258
As per my understanding some ports are open meaning you can connect to those ports from your Desktop provided you know the IP address of the RPi. But from RPi I assume you can connect to other ports such as 443.
I would suggest this solution:
On your Rpi, run this command ssh -p 443 -R0:localhost:22 [email protected]
. This would give you an address and port using which you can access your RPi from your desktop.
Now there is a catch, on a restart this address will change. You can do this to figure out the address:
Create a free account on pinggy.io
Use the command on your RPi (replace yourtoken
with your pinggy token):
while true; do
ssh -p 443 -R0:localhost:22 [email protected];
sleep 5; done
Then from the pinggy dashboard you can always check your present address and port.
Disclosure: I am a part of Pinggy team
Upvotes: 1