Enable the Linux SSH service and remotely log on to the Linux Virtual Machine

Source: Internet
Author: User
Tags ssh secure shell

When using VMWare virtual Linux in windows, data and files are often transmitted between the virtual machine and the host, therefore, it is convenient to use tools such as SSH Secure Shell client to remotely control Linux virtual machines and transfer files. The following is a brief description.

Host system: Windows 7x64

Virtual Machine Software: VMWare 7.0.0

Virtual Machine System: RedHat el 5

Step 1: Enable the Linux SSH service

Chkconfig -- list | grep sshd.

The sshd access must be allowed in the firewall rules:

1. Clear firewall rules, # iptables-F

2. # iptables-A input-p tcp -- dport 22-J accept

# Iptables-A output-p tcp -- Sport 22-J accept

Step 2: configure the Virtual Machine Network

It is best to set the NIC of a virtual machine as a bridge, set the IP address of the virtual machine, and use the ping command to check whether the virtual machine is connected to the host.

Step 3: Start the SSH Secure Shell Client

Click quick connect, enter the Virtual Machine IP address, enter the Virtual Machine Login User Name, select port 22, authentication select password, click Connect, and then enter the login password to connect.

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.