Ssh access to the linux system in vmware8

Source: Internet
Author: User
Tags ssh access
Ssh accesses to the linux system in vmware8. The network settings of Vmware adopt the NAT mode. you want to use ssh to access the Linux system in the virtual machine in the local WIN7 system. 1. perform address and port ING. Open VirtualNetworkEditor (in the Edit menu, or in the VMwareHome world... ssh accesses to the linux system in vmware8. The network settings of Vmware adopt the NAT mode. you want to use ssh to access the Linux system in the virtual machine in the local WIN7 system. 1. perform address and port ING. Open Virtual Network Editor (in the Edit menu or in the VMware Home interface menu ). Select the NAT project, open the NAT Setting page, and click Port Forwarding-> Add... Host Port: 22 (the Port to be mapped in the Host) Virtual Machine IP address: 192.168.253.128 22 (which IP address is mapped to (which Port can be viewed through ifconfig in linux) description: SSH Virtual port (brief Description) 2. confirm that the Linux SSH service has been activated * ssh is a remote management method that can replace telnet. A service that has the advantages of security and shortcuts. * run the setup command in the shell window and select system service to start the sshd service. * in the/etc/ssh/sshd_config file, set PermitRootLogin no | yes to allow the root user to log on remotely. 3. view firewall settings in Linux and windows, disable it, or open port 22. Disable the firewall in linux: disable the firewall with the ROOT permission: # service iptables stop # chkconfig iptables off ============================== =========================================== * permanent effect, after restart, it will not be enabled: chkconfig iptables on off: chkconfig iptables off * takes effect immediately. after restart, it will be enabled: service iptables start off: service iptables stop: open port 22 in windows. enable the SSH service in windows or use netstat-an to check whether Port 22 is used to access the linux system in the virtual machine through ssh: connect through SecureCRT 4. close VMware to the system tray: open VMware's Edit-> Preferences-> Workstation-> Keep VMs running after Workstation closes5. enable fedora to start on the text interface by default to reduce memory usage: sudo ln-s/lib/systemd/system/multi-user.target/etc/systemd/system/default.tar get
Related Article

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.