Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the considerations of using ssh to manage VPS under linux

Shulou Source: shulou.com Published: 2022-06-01 06:39:57 10月03日 Update

This article mainly introduces the points for attention of using ssh to manage VPS under linux. It is very detailed and has certain reference value. Friends who are interested must finish reading it.

Use key file interactive login way to connect to ssh. Therefore, the first step is to generate the key file for ssh.

1 、 ssh-keygen

2. Then, download the key and public key on the server. Save it in the current user's .ssh folder.

The problem to note here is that you must download both, and only download the key, which will prompt you to need the public key. Putty seems to have this problem. Just download the key and convert it.

The login problem of ssh was solved, and then a new problem came again, because the author surfed the Internet through the intranet HTTP agent in the company. It seems that proxies cannot be used directly on ssh. After consulting the data, the author found that. Does ssh need to go through the tunnel (tunnel) to use the HTTP proxy (or is there another good way? The author does not know = =!, netizens do not hesitate to give advice.

1. Download a tunnel software, such as corkscrew download address, decompress and compile

Tar zxf corkscrew-2.0.tar.gz

Cd corkscrew-2.0

. / configure

Make & & make install

2. Modify ssh configuration

Vi / etc/ssh/ssh_config

Add

Host *

ProxyCommand corkscrew server port h p

After saving, you can log in to ^ _ ^ directly using ssh

The above is all the contents of the article "what are the precautions of using ssh to manage VPS under linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Questions keys files author agent login matters notes management public key content method article comment two value company company pass interest address Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information Xiaomi Apple MariaDB