Hey everyone, I'm hoping you can shed some light on this for me. I'm new to ANT and am trying to troubleshoot an issue. I have searched high and low and all the answers that I found do not seem to work with my configuration.
I have successfully gotten scp to work using user/pass authentication in an ant script, but I cannot get it to work with ssh2 keys. Since my passwords expire every 90 days it's become troublesome (cronned ant script failing because the userid is expired), so I'd like to gets keys working. 1) I have ssh2 keys set up on serverSOURCE and serverDEST. 2) I can successfully ssh and scp in AIX from serverSOURCE to serverDEST no problems (no password is needed). 3) I cannot get ANT's scp script to do the same. Here is my build.xml that I was playing with: ------------------------------------------------------------------- <?xml version="1.0"?> <project name="scp" basedir="." default="go"> <target name="go"> <scp file = "[EMAIL PROTECTED]:/usr/somefile.txt" keyfile = "/home/user/.ssh2/id_dsa_2048_a" passphrase = "" todir = "." trust = "true" port = "22" verbose = "true" sftp = "true" /> </target> </project> ------------------------------------------------------------------- ANT VERSION: 1.7.0 : jsch-0.1.37.jar OS: AIX 5.3 Any help is appreciated! Max -- View this message in context: http://www.nabble.com/Ant-on-AIX-using-SCP-to-transfer-files-with-ssh2-keys-tp16952909p16952909.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]