-
Official website: https://www.cpolar.com/
-
step:
- The ssh permission can be installed first (It must be completed first. After completion, you can connect to your own server in the LAN, but you still need to install cpolar to connect to the server outside the local area.), refer to Station B: Linux (Ubuntu) how to enable SSH remote login
- 1. Open the terminal
- 2. Install OpenSSH server
sudo apt update
sudo apt upgrade
sudo apt install openssh-server
- 3. Activate and verify the movement of the ssh server
sudo systemctl enable ssh
sudo systemctl start ssh
sudo systemctl status ssh
- print outActive: active (running) since Wed 2023-08-23 23:58:03 CST, indicating that the activation is successful,
ctrl c
exit with
- print outActive: active (running) since Wed 2023-08-23 23:58:03 CST, indicating that the activation is successful,
- 4. Configure the firewall and port (default 22), check the status:
sudo ufw allow ssh
sudo ufw enable
sudo ufw status
- 5. Check the ip and user name, and log in on another computer (connected to the same LAN)
ifconfig
Check the ip, the user name is the ubuntu system user name- For example
ssh [email protected]
, you can log in
- Follow the official website documentation ( https://www.cpolar.com/docs ) to install on ubuntu at home, and open the tunnel, you don’t need to install it on your laptop
- The ssh permission can be installed first (It must be completed first. After completion, you can connect to your own server in the LAN, but you still need to install cpolar to connect to the server outside the local area.), refer to Station B: Linux (Ubuntu) how to enable SSH remote login
-
have to be aware of is:
- There are two servers, no public account is required, and two mailboxes are used to register separately
- Use
sudo ufw status
to view available ports. When opening a tunnel, select this port for mapping. Mine is port 22, so 8080 is not available. - There are two computers that need to connect to the same server, it is best to re-open a tunnel, the mapped port can be the same (22), change the region
Remotely connect to the ubuntu server at home with ssh in the field (Coplar intranet penetration)
Guess you like
Origin blog.csdn.net/qq_35759272/article/details/132037958
Ranking