在_/.ssh_目录下新建config文件,添加内容: # 远程仓库地址 Host "dev.wizarpos.com" # 提供给git使用 User "git" # 私钥文件路径 IdentityFile "C:/Users/demo/.ssh/id_rsa_wizarpos" # 远程端口 port 30022 # 为true代表使用此配置 IdentitiesOnly yes