Xshell connects to virtual machine linux and xshell Virtual Machine linux

Source: Internet
Author: User

Xshell connects to virtual machine linux and xshell Virtual Machine linux

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.