Windows SSH remote connection to Linux server without public network IP intranet penetration

To remotely connect to a Linux server using SSH on Windows, you can use intranet penetration technology, which does not require the server to have a public IP address.

Here are some steps:

1. Install an SSH client on Windows. Windows 10 comes with an OpenSSH client, but other clients such as PuTTY can also be used.
2. Install the OpenSSH server on the Linux server. OpenSSH server is usually pre-installed in most Linux distributions.
3. Make sure the SSH port (22 by default) is open on the Linux server.
4. Download and install the intranet penetration tool, and run it on the Windows host. There are many different options to choose from, such as Ngrok or FRP. 
5. Map the public port of the intranet penetration tool to the SSH port of the Linux server. For example, set the public port to 2222 to correspond to port 22 of Linux.
6. Using SSH client on Windows, set the IP address and port number of the public port as the remote host address, for example: ssh [email protected] -p 2222.

In this way, you can use the SSH client on Windows to connect to your Linux server. Note that the use of intranet penetration requires a relatively stable network environment.

Guess you like

Origin blog.csdn.net/m0_57790713/article/details/130758650