[PLUG] Re: Suse and the jsch jar with ant
Tony Schlemmer
aschlemm at comcast.net
Thu Jul 5 14:40:09 UTC 2007
On Wednesday 04 July 2007 23:54, Ted Kubaska wrote:
> Yes, I'm pretty sure I did. I know that by downloading ant from the ant
> site and configuring it myself, I can get it to work. And so for the
> time being that's what I'm going to do (I get a newer version of ant
> (1.7) that way too BTW). My problem is not with ant or the OS I think
> but rather with what happens when I install with YaST. And I may have
> missed some package, although honestly I've been very careful to be
> thorough. Getting a working ant from the ant site makes this problem not
> a showstopper, and I can study it in non-critical moments.
You can see what location an RPM installs the files into by performing the
following (My example is the RPM from the 10.2 DVD and its ant package):
rpm -ql ant-1.6.5-41
That will show the path to each file in the RPM.
You can also run "ant -diagnostics" which dumps out a log of interesting
information regarding ant's configuration. I would probably try copying your
jsch.jar file to "/usr/share/ant/lib" since I see among other things the
following entry when I run ant with the -diagnostics option:
ant.library.dir : /usr/share/ant/lib
> Thanks for taking an interest in this. If it weren't for PLUG, I think
> I'd be out in the wilderness.
>
> Oh, a while back I complained about needing to put a password in an ant
> file and not feeling comfortable with that. I read that people often use
> use public/private key authentication with no passphrase for this
> purpose (in that way your scripts contain no private information). Which
> may be secure if the user who does the scp doesn't have rights to do
> much else and you keep the private key in a very safe place. I think
> this is the way to do secure automated uploads ... is this what people
> do?
> -ted
That's what we do in cases where we connect to some systems via "SFTP". We
have a key file installed on every system we need to connect to and so we can
automate the upload of files in a script since we do not need to enter a
password to connect to the remote hosts.
Tony
--
Anthony Schlemmer
aschlemm at comcast.net
More information about the PLUG
mailing list