R
R
Runis2020-01-13 22:42:47
SSH
Runis, 2020-01-13 22:42:47

How to connect to Raspberry pi via SSH from "outside" the network?

There is a Raspberry pi, figured out how to connect to it via SSH. It was possible to do this within the network. But now I would like to connect to it from other places and providers, and not just my home network.

How can I do it? Raspberry pi connected to D-Link DIR-300 router.

Kt for me it's all new, tell me please, where can I register external access to the internal network in the router? On the Internet, they talk about setting up forwarding and DHCP. Also explain about static ip. And what do I need to change in the /etc/network/interfaces, /etc/ssh/sshd_config and /etc/dhcpcd.conf files?

I tried different combinations, but nothing worked. Help me please!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ronald McDonald, 2020-01-13
@Zoominger

On the Internet, they talk about setting up forwarding and DHCP.

BUT? Set up port forwarding on your router.
g: port forwarding dir-300.

A
Alexey, 2020-01-17
@AlexeyKolodchenko

At the provider, activate the "External IP address" service and ask him to forward the 22nd port to the address of the router, on the router, if it is closed (which is unlikely), open the 22nd port, allowing external connections and forward it to the IP address of your "raspberry" ". PROFIT. There is no need to configure anything else. This is the main algorithm for how to do it on a specific router, look for instructions in search engines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question