1. Ensure that Windows and Linux can ping each other, Nat or bridge can Ifconfig 2. Disabling SELinux Services 1. Temporarily disable SELinux: [email protected]# Setenforce 0 After restarting the server, SELinux will still be started. 2, permanently disable: [@[email protected]]To Open the SELinux configuration file on the server, the default is: /etc/selinux/config , the contents are as follows: # This file controls the state of the 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 is protected. # Strict-full SELinux protection. selinuxtype=targeted put the above Selinux=enforcing instead: Selinux=disable Disable SELinux 3. Start the sshd service in VMware Linux /etc/init.d/sshd Start Open Chkconfig--add sshd --------------------------------------------------------------------------------------- Using Ubuntu to see is in/usr/sbin/sshd 4.Xshell use command: SSH <linux IP address > SSH 192.168.27.128 |