build.xml
<?xml version="1.0" encoding="UTF-8"?> <project name="ssh_test" basedir="." default="sshtest1"> <xmlproperty file="deploy.properties.xml" keepRoot="false" semanticAttributes="true"/> <target name="sshtest1"> <sshexec host="host1.example.com" trust="true" username="${username}" keyfile="${keyfile}" passphrase="${passphrase}" command="whoami"/> </target> </project>
deploy.properties.xml
<properties> <username>you</username> <keyfile>${user.home}/.ssh/id_rsa</keyfile> <passphrase>your_passpharse</passphrase> </properties>
0 件のコメント:
コメントを投稿