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 ^_^

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.