Linux: ssh_config quick access server

In the root directory of the current user:

cd ~/.ssh
vi config

Edit the config content as follows:

ForwardAgent yes

Host 1
    Hostname 192.168.1.1
    User root
Host 2
    Hostname 192.168.1.2
    User root
Host 3
    Hostname 192.168.1.3
    User root

Save and exit, then directly:

ssh 1

You can quickly access the server.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324129199&siteId=291194637