SSH Config 配置
- 配置文件
config
在~/.ssh
目录下
ssh config 大大简化了登录远程服务器的操作
Host example # 关键词
HostName example.com # 主机地址
User root # 用户名
IdentityFile ~/.ssh/jojo.pem # 认证文件
Port 22 # 指定端口
在从终端输入命令如下即可快速登录
$ ssh example
非常便捷了吧