gerrit ssh 登陆设置

[root@web ~]# cat ~/.ssh/config

Host gerrit

User deploy-gerrit

Port 29418

Hostname gerrit.demo.com

IdentityFile ~/.ssh/id_rsa

IdentityFile ~/.ssh/openssh-key

StrictHostKeyChecking no

# 可以不添加IP 到known hosts 中

UserKnownHostsFile /dev/null

 

你可能感兴趣的:(ssh)