Http://www.ha97.com/2836.html
I have used many proxy Internet access methods in Linux. I have summarized them and found that the following is the simplest method!
Specific Method:
1. Enter the following command on the terminal:
Xxx@x.x.x.x ssh-qtfnn-D 7070
Enter the SSH password. If the ssh port is not
Http://www.ha97.com/2836.html
In Linux has used many kinds of proxy internet methods, summed up, found that the following is the simplest.
Specific methods:1. Enter the command under the terminal:
ssh-qtfnn-d 7070 xxx@x.x.x.x
Then enter the SSH password, and if the SSH port is not 22, it is customized:
Ssh proxy on linux ssh to keep the connection: www.2cto.com Modify/etc/ssh/ssh_config 1 TCPKeepAlive yes2 #60 s to send a data packet, many use 300 on the internet, I found this is still too long for me 3 ServerAliveInterval 60 ssh automatic login: edit the script
Many times, because of some special problems, we need to use the agent. We all know Xen VPS build VPN easier, PPTP one-click installation package soon OK. But OpenVZ is a bit troublesome, to TK open TUN/PPP, and then install, may also encounter some inexplicable problems.
Although I also use VPN, but personally think, the VPN also has his trouble place, is each connection once QQ all must re-enter, but also has the input authentication code, this, also inferior
Install proxychains-ng First:Brew Install Proxychains-ngThe public key is then uploaded to the server, and a Authorized_keys file is created under ~/.ssh for no-login processingCat id_rsa.pub >> authorized_keysLocal editingVim ~/.ssh/config#代理服务器Host PROXYVMHostName 192.168.8.7Identityfile ~/.ssh/id_rsaUser UbuntuPort 22#git服务器Host 192.168.9.9HostName 192.168.9.9
If you log on to the server remotely, there may be some security issues, so you may use some method to improve the security of logon, such:1. Establish a vpn connection channel. vpn transmission is encrypted and secure. Recommended for use. For more information, see ~2. Using public keys and keys for transmission, many ssh clients now have the ability to generate key pairs, which are also easy to manage. If the company's O M staff resign, they only n
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.