IP alias access __linux configured SSH in Mac/linux

Source: Internet
Author: User
When we log on to the server with SSH on the client, the commands we enter are often troublesome, such as "SSH root@111.111.111.111". If you want to manage multiple IPs, it's really hard to remember these IPs.        Fortunately, we can use aliases to replace these difficult to remember the IP, using a similar "SSH root@server1" this way to login to the server, is not very convenient. The following describes the configuration on Mac and Linux, respectively.
Mac: In ~/.ssh/config, configure the following:
Host Server1
HostName 111.111.111.111
User root
identitiesonly Yes

After saving, host alias access is available.

Linux: Add the above configuration to the/etc/ssh/ssh_config.
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.