SSH connection cent OS record in virtual box VM under Mac OSX

Source: Internet
Author: User

Set VirtualBox Preferences-"network-" plus a default host-only nic.

Then follow the settings here.

SSH login "ssh-l root 192.168.56.1-p 2222"

As for the SSH reference below, is copied from the book.

Yum Install SSH instructions: The installation of SSH, the general has been installed, if this step out of the Internet to check.

Ssh-keygen-t Dsa-p '-F ~/.SSH/ID_DSA Description: Generate the key, "~" is the current user folder simplified way,/home/xxxuser "-P" for the password, not set here. "-F" Specifies the generated key file, DSA is the key type. This command creates a ID_DSA and id_dsa.pub two files under the "~/.ssh/" folder, respectively, corresponding to the private key public key.

Cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys Description: The public key is appended to the authorization key.

SSH localhost verifies that you can log on.

SSH connection cent OS record in virtual box VM under Mac OSX

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.