/Users/devzkn/.ssh 的config 配置备份

来源:互联网 发布:激战2人类男捏脸数据库 编辑:程序博客网 时间:2024/05/21 17:14

前言

Host  别名HostName: 是目标主机的主机名,也就是平时我们使用ssh后面跟的地址名称。Port:指定的端口号。User:指定的登陆用户名。IdentifyFile:指定的私钥地址。

config 的配置

记得配置Host

devzkndeMacBook-Pro:.ssh devzkn$ more config

# Private 192.168.2.125Host iphoneHostName  192.168.2.125User root IdentityFile ~/.ssh/id_rsa_Theos125# Private gitlab.v6hHost gitlab.v6hHostName  gitlab.v6hUser gitIdentityFile ~/.ssh/id_rsa_qinb# Private githubHost github.comHostName  github.comUser gitIdentityFile ~/.ssh/id_rsa
原创粉丝点击