A summary of the considerations for using SSH to manage VPS under Linux

Source: Internet
Author: User
Tags ssh vps server port

The author uses the key file interactive login way to connect ssh. Therefore, the first step is to generate the SSH key file.

1, Ssh-keygen

2, then, the server's key, the public key to download down. Saved under the. ssh folder of the current user.

The point to note here is that a certain two must be downloaded, download only the key, will prompt the need for a public key. Putty seems to have this problem, directly download the key and then convert it.

SSH login problem solved, then, the new problem came again, because the author in the company through the intranet HTTP proxy way to surf the internet. It appears that the proxy cannot be used directly on SSH. The author finds out after consulting the data. SSH needs to go through the tunnel (tunnel) to use the HTTP proxy (or is there any other good way?) I do not know the =_=!, you do not hesitate to enlighten the user.

1, download a tunnel software, such as corkscrew download address after decompression, compiling

Tar zxf corkscrew-2.0.tar.gz

CD corkscrew-2.0

./configure

Make && make install

2, modify the SSH configuration

Vi/etc/ssh/ssh_config

Add to

Host *

Proxycommand Corkscrew Server Port%h%p

Once saved, you can log in directly using SSH ^_^

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

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.