Considerations for using ssh to manage VPS under Linux

  
 

In view of the low efficiency of the network under the windows system, the author recently converted all operating systems
to linux. I used to use ssh under windows to log in to ssh to manage vps. The primary problem under Linux is to solve the management problem of vps.

The author uses the key file to log in interactively to connect to ssh. Therefore, the first step is to generate the ssh key file.

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 be aware of here is that both must be downloaded, only the key is downloaded, and the public key is required. Putty looks like rice has this problem, you can download the key directly and then convert it.

The ssh login problem is solved, and then the new problem comes again; because the author is online in the company through the intranet HTTP proxy. It seems that the agent can't be used directly on ssh. I found out after reviewing the information. Ssh needs to use the tunnel (tunnel) to use the HTTP proxy (or other good methods? I still don't know =_=!, you netizens have enlighten me).

1, download a tunnel software, such as corkscrew download address decompression, 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 < Br>

Host *

ProxyCommand corkscrew server port %h %p

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

Copyright © Windows knowledge All Rights Reserved