Skip to content

Instantly share code, notes, and snippets.

@LexaChebara
Last active December 23, 2015 00:09
Show Gist options
  • Select an option

  • Save LexaChebara/6551221 to your computer and use it in GitHub Desktop.

Select an option

Save LexaChebara/6551221 to your computer and use it in GitHub Desktop.
Ant Jsch with non empty passphrase (jsch 1.5+)
<target name="upload">
<input message="Enter passphrase:" addproperty="ssh.passphrase" >
<handler classname="org.apache.tools.ant.input.SecureInputHandler" />
</input>
<scp todir="${ssh.username}@${ssh.host}:${ssh.path}"
file="${file.to.copy}" trust="true"
keyfile="${ssh.keyfile}" passphrase="${ssh.passphrase}"/>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment