实现功能

windows本地多个ssh密钥对,分别对应不同的阿里云账号的云效

实现办法

1.生成ssh密钥对

ssh-keygen -t rsa  -f C:\xxx\id_rsa_customname(我这里C:\Users\admin\.ssh\id_rsa_customname)

2.配置.ssh目录的config文件

# ruiyi
Host
customname
HostName codeup.aliyun.com
IdentityFile ~/.ssh/id_rsa_
customname
PreferredAuthentications publickey
IdentityAgent none
IdentitiesOnly yes

3.配置云效地址

git@customname:038920020221/project.git

4.在云效中添加id_rsa_customname.pub公钥的内容

阿里云云效多个ssh密钥对配置-LMLPHP

09-26 04:01