Linux SSH alias login tips _linux

Source: Internet
Author: User

In order to facilitate login to the server, we generally use putty, securecrt and so on tools. How does a terminal log on through a server alias?

You can create ~/.ssh/config files and specify logon information and authentication methods for each server, as follows:

$ vim ~/.ssh/config

Host www
  HostName www.ttlsa.com
  Port
  User root
  identityfile ~/.ssh/id_ Rsa.pub
  identitiesonly Yes

Host bbs
  HostName 115.28.45.104
  User anotheruser
  Pubkeyauthentication No

Then specify the alias directly to sign in

Shell
$ ssh www
1 $ ssh www
Option Note:

HOSTNAME Specifies the host name or IP address of the login
PORT Specifies the port number of the login
User logon username
Identityfile Log in Public key file
Identitiesonly only accept SSH key login
Pubkeyauthentication

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.