2, connected to the host through Xshell virtual machine CentOS7

1, Xshell installation

1, first of all, make sure CentOS7 installed   OpenSSH-Server , type in a terminal   yum list installed | grep openssh-server

Shown here already installed   openssh-server , if not any output display for not installed any   openssh-server , by entering   yum install openssh-server to install openssh-server

2, find the   / etc / SSH /   sshd service configuration file in the directory  sshd_config , opened in Vim Editor

 

(Note: The bloggers eliminating some methods of operation, I, as a novice, or under the Supplementary vim enter text, press the "i" to start editing, then edited by "esc" retreated to command mode, press ": wq" to save and exit )

  2.1 the file, remove the # sign on the front monitor port, listening address

  2.2  open to allow remote login

  2.3 Open username and password to use a connection verification

Save the file and exit

3, open the sshd service, enter  sudo service sshd start

Check if sshd service is turned on, enter ps -e | grep sshd

Or enter netstat -an | grep 22   check   22  number of the port monitor is turned on

4, in SSH tool (used here XShell), a new connection, enter the IP address of CentOS, user name and password to connect successfully

5. At this point, Xshell CentOS system successfully connect virtual machines

 

Guess you like

Origin www.cnblogs.com/wf2010517141/p/11094055.html