git config --global user.name "username"
git config --global user.email "username@realtek.com"
ssh-keygen -t rsa 全部回车键就好
cat .ssh/id_rsa.pub 把cat出来的key添加到mm2.sdlc.rd.realtek.com上
vi ~/.ssh/config 在里面增加下面几行
(新版--从code服务器上,目前在用)
#Host mm2.sdlc.rd.realtek.com
Host mm2-slave.sdlc.rd.realtek.com
HostName mm2-rs-slave.sdlc.rd.realtek.com
#HostName mm2-hc-slave.sdlc.rd.realtek.com
Port 29418
User yingfei_li
IdentityFile ~/.ssh/id_rsa
测试key是否正确,有看到欢迎画面即可
ssh -p 29418 mm2-slave.sdlc.rd.realtek.com (新版,从code服务器,目前在用)
.ssh目录下对应权限参考:
.ssh 766
config 664
id_rsa 600
id_rsa.pub 644