1. Introduction
External network access to Raspberry Pi (router port mapping)
2. Software environment
2.1 centos 7(CentOS-Userland-7-aarch64-RaspberryPI-Minimal-4-2009-sda.raw)
You can also go to the official website to download (https://www.centos.org/centos-linux/), Raspberry Pi 4b is only supported by Minimal-4 (the mini version has no page), and other versions do not respond when installed. There are two centos versions in the link, one with pages and one without pages.
2.2 MobaXterm_Personal_23.0
It is used to remotely access centos by computer.
2.3 Termius (without Google framework)
This Google store download needs to install the Google framework. Huawei’s can’t be used. You can go to Baidu to check for a download. Do you need the Google framework?
2.4 Huawei Router AX2 Pro
3. Main process
3.1 Router port mapping settings (take Huawei router AX2 Pro as an example)
First look at the address of the router's management page from the back of the router.
After entering, you must first find the Raspberry Pi. How to connect the Raspberry Pi to the Internet can be found in mine (http://t.csdn.cn/28dQA). There is how to connect to wifi ,
After connecting in, the terminal management can see what devices are there, you can find the Raspberry Pi, and then change its name, the original name is all letters, it is difficult to find, then start to set up port
mapping, enter
the internal port of the nat service Set it to 22, and set the external port above 1024. If it is low, it may not work. Then
we access it through MobaXterm_Personal_23.0. How to connect or see (http://t.csdn.cn/28dQA), you can access it. When connecting, ip Remember to use the ip of the router, you can directly search for the ip on Baidu, just use that ip directly, and fill in the external port for the port
3.2 Mobile remote
This is the official software (https://www.termius.com/), which requires the Google framework, and some Baidu finds do not need it. You can find the
connection method by yourself and it is almost the same as MobaXterm_Personal_23.0. The connection is like this, not bad. enough