Management remote host using ssh

First, find two virtual machines to ping, because the purpose of the experiment by the Client Access server.

After we enter the virtual machine, open a terminal and enter the command: RPM -qa | grep OpenSSH

 

Uninstall enter the command:  yum the Remove OpenSSH -serv

 

 

 

Installation enter the command: yum install OpenSSH *

 

 

Is that installed.

Enter the command: vi / etc / ssh / sshd_config

Then we open the file in a folder on the server to change the part

 

 

 

 

Into this just fine.

Back to the terminal, enter: ssh-keygen. Configuration key

 

 

 Next, the client virtual machine key to the server virtual machine

Enter the command:.. Ssh-copy-id 192.168 ×× ×× (×× content is that your computer ip)

 

On the client operating

 Enter the command: .. SSH 192.168 × × × ×   this time if the hostname may change shows a success

 

 

 

Guess you like

Origin www.cnblogs.com/qi-yuan/p/11795300.html