Article title: linux port ing. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Ssh-C-g root@127.0.0.1-L 5000: 61.235.139.123: 5000
Enter the root password of the machine.
Background execution: ssh-C-f-N-g root@127.0.0.1-L 5000: 61.235.139.123: 5000
In addition:
Ssh-C-f-N-g-R remote_port: local: port user @ remotehost
You can bind a remote server port remote_port to the local port, where-C is used for data compression and-f is used for background operations. only when the user name and password are prompted Can you switch to the front server. -N is not used to execute remote commands. This command is useful when only port forwarding is performed. -G allows the remote host to connect to the local forwarding port. -R indicates that the remote host port is mapped to the local port. If it is-L, the local port is mapped to the remote host port.
In-depth example of ssh port forwarding:
Thursday, 5. 10000l 2007, 13:44:15