Using putty to connect CENTOS7 Linux hosts on local VirtualBox

Source: Internet
Author: User
Tags ssh port

1. View the Linux host default SSH port

Open Terminal

Input cd/etc/ssh/

View the Ssh_config file as shown in

you can see that the default port for centos7.0 ssh is.

Two. Set up port forwarding in VirtualBox

Because of the network address translation (NAT) used in the network settings, CentOS on the virtual machine is equivalent to a machine under the intranet and needs to be configured for mapping to find

The host port can write any port that is not occupied on the window, the subsystem port must fill port 22nd, for the reasons above, the Linux SSH default port is 22.

When connecting with Putty, populate the host port in the host IP127.0.0.1 (native) and port forwarding, which is mapped to the centos7.0 22 port in the virtual machine.

Three. Test the connection using putty

Enter the user name and password to connect successfully.

Using putty to connect CENTOS7 Linux hosts on local VirtualBox

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.