1. Ensure that windows and Linux can ping each other, NAT or Bridge Ifconfig 2. Disable The Selinux Service 1. temporarily disable SELinux: Root @ server # setenforce 0 After the server is restarted, SELinux will still be started. 2. Permanently disabled: [@ More @]Open the SELinux configuration file on the server. The default value is:/Etc/selinux/config, The content is as follows: # This file controls the state of SELinux on the system. # SELINUX = can take one of these three values: # Enforcing-SELinux security policy is enforced. # Permissive-SELinux prints warnings instead of enforcing. # Disabled-SELinux is fully disabled. SELINUX = enforcing # SELINUXTYPE = type of policy in use. Possible values are: # Targeted-Only targeted network daemons are protected. # Strict-Full SELinux protection. SELINUXTYPE = targeted Set SELINUX = enforcing changed: SELINUX = disable Disable SeLinux 3. Start the sshd service in vmware linux /Etc/init. d/sshd start Enabled Chkconfig -- add sshd Bytes --------------------------------------------------------------------------------------- In ubuntu, we can see that it is in/usr/sbin/sshd 4. Run the command in Xshell: ssh <linux IP address> Ssh 192.168.27.128 |