That is awsome! This would be a great addition to Ant. -Rob A > -----Original Message----- > From: Michael Elmsly [mailto:mike.elmsly@ihug.co.nz] > Sent: Tuesday, July 13, 2004 2:48 AM > To: Ant Users List > Subject: RE: SSH Tunnel > > > Hi Rob, All, > heres my situation as an example > > I have > > [Reporting HOST]----[FW]----[BASTION HOST]----[FW]----[WEBSERVER] > > I can ssh to the bastion host from my reporting host but not > directly to > the webserver. What I wanted to do was retreive log files, without > storing them temporarily on the bastion host which involved some messy > workarounds to first retrieve the files and then clean up afterwards. > Hence the tunnel...Heres a sample from my demo build file.... > > > classpath="/home/elmslym/anttunnel.jar"/> > > > > username="${user.name}" > keyfile="${user.home}/.ssh/id_dsa" > knownhosts="${user.home}/.ssh/known_hosts" > passphrase="youre kidding me" > lport="2222" > rport="22" > rhost="${env.remote_host}"> > > file="${user.name}@localhost:${env.remote_dir}/${env.remote_fi > le_pattern}" > todir="${env.local_dir}" > keyfile="${user.home}/.ssh/id_dsa" > > knownhosts="${user.home}/.ssh/known_hosts" > trust="yes" > passphrase="" > compressionlevel="9" > port="2222"/> > > > > so I use the ssh tunnel task to setup an ssh tunnel on port 2222 going > through my bastion_host to the remote host on port 22. > > Inside my sshtunnel task I nest an scp task to connect to the remote > host through the tunnel and bring the files back. However I > could just > as easily nest a deploy task to a remote tomcat server etc. > > Cheers, > Mike > > > On Tue, 2004-07-13 at 04:06, Anderson, Rob (Global Trade) wrote: > > Mike, Can you provide some examples of how you use this > task and some sample build.xml snipets. That would help to > clarify the functionality you have described. > > > > Thanks, > > > > -Rob A > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org