1、先创建key storage
2、配置项目的password key
3、配置xml文件将登录方式改为password
ssh-authentication=“password” sudo-password-storage-path=“keys/gitpassword”
<?xml version="1.0" encoding="UTF-8"?>
<project>
<node name="zabbix" description="zabbix" tags="zabbix" hostname="10.0.0.8" osArch="amd64" osFamily="unix" osName="freebsd" osVersion="9.2-RELEASE-p15" username="root" />
<node name="git" description="git" tags="git" hostname="10.0.0.81" osArch="amd64" osFamily="unix" osName="freebsd" osVersion="9.2-RELEASE-p15" username="root" ssh-authentication="password" sudo-password-storage-path="keys/gitpassword"/>
</project>
4、执行下command测试一下