SSH登录服务器设置别名 发表于 2020-08-08 | 更新于 2023-01-11 一、通过ssh登录服务器1234# 通过ip登录ssh root@94.191.****# 设置过别名通过别名登录ssh root@test-1 二、设置别名登录打开配置文件12# 打开配置文件vi ~/.ssh/config 加入配置内容123456789101112# 当前文件 ~/.ssh/config # 第一台服务器Host test1 HostName 94.191.*** Port 22 User root# 华为服务器Host test1 HostName 121.36.*** Port 22 User root