1.生成加密文件
ssh-keygen -t rsa -C "xx@xx.com"
2.加入網(wǎng)站
cat /id_rsa.pub
侥袜, 把內(nèi)容拷貝到網(wǎng)站,添加
3.添加到keychain
ssh-add -K /id_rsa
/Users/xxx/.ssh/config中配置不同域名對應的ssh文件
1.生成加密文件
ssh-keygen -t rsa -C "xx@xx.com"
2.加入網(wǎng)站
cat /id_rsa.pub
侥袜, 把內(nèi)容拷貝到網(wǎng)站,添加
3.添加到keychain
ssh-add -K /id_rsa
/Users/xxx/.ssh/config中配置不同域名對應的ssh文件