Set an alias for SSH to access a remote server

Source: Internet
Author: User

Set an alias for SSH to access a remote server

Generally, the command used to access the remote server via ssh is: ssh username @ IP address,
For example, ssh [email protected], and then enter the password to access it.

Take Mac OS as an example. For other operating systems, search for them by directory.

The settings are as follows:

Use cd ~ /. Ssh/go to the ssh directory and you will see the config and known_hosts files. If there is no setting, there will only be known_hZ hosts? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> vc3Rzo6y/examples/qGjPC9wPgoKPHA + yrnTw3ZpbbHgvK1jb25maWfOxLz + placement =" brush: SQL; ">Host jhdHostName 1xx. 1xx. 1xx. 67 User rootIdentitiesOnly yes

Where:
1. The Host is followed by a name, which can be accessed later;
2. HostName is your host IP address;
3. the User is the username used to log on to the host;
4. Inherent IdentitiesOnly yes configuration;

The setting is complete. Later, use ssh jhd and enter the password to log on to the remote host!

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.