Re: SSHEXEC Command Line Equivalent

2023-01-09 Thread Eric Fetzer
Well it turns out this wasn't the fix. The SA accidentally left security relaxed. Still need to figure this out. Is there a way to call JSCH from the command line to reproduce the issue? Thanks - Eric On Fri, Dec 30, 2022 at 8:51 AM Eric Fetzer wrote: > One of our SA's figured out a good wor

Re: SSHEXEC Command Line Equivalent

2022-12-30 Thread Eric Fetzer
One of our SA's figured out a good work around. I had to regen our keypair using pem. Then it worked. ssh-keygen -m pem Thanks for all the help guys! On Wed, Dec 28, 2022 at 2:53 PM ilya Basin wrote: > Have you tried running the Ant task from an interactive shell or was it > always being lau

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
I'm running it from the command line for this but I use the ant installation inside of Jenkins. Not sure how to invoke an interactive shell. I don't think I've ever done that. On Wed, Dec 28, 2022 at 2:53 PM ilya Basin wrote: > Have you tried running the Ant task from an interactive shell or w

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread ilya Basin
Have you tried running the Ant task from an interactive shell or was it always being launched by Jenkins? On 29.12.2022 0:14, Eric Fetzer wrote: > OK, here's what we've put together: > > On the server that this is trying to ssh to and run a command, it gets an > error:  PAM: pam_open_session():

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
OK, here's what we've put together: On the server that this is trying to ssh to and run a command, it gets an error: PAM: pam_open_session(): Cannot make/remove an entry for the specified session The quick fix (which the SA's aren't willing to make long term is to comment out the line: “session

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Ilya Basin
I don't think we'll help more without seeing the problem details. On 28.12.2022 23:16, Eric Fetzer wrote: > Hmmm, that command works at the command line. > > On Wed, Dec 28, 2022 at 10:54 AM Ilya Basin > wrote: > > Hi Eric. > > I hope you're using the modern

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
Hmmm, that command works at the command line. On Wed, Dec 28, 2022 at 10:54 AM Ilya Basin wrote: > Hi Eric. > > I hope you're using the modern OpenSSH client program. Something like this: > > ssh -F none \ > -oBatchMode=yes \ > -oUser=myUser \ > -oIdentityAgent=none \ > -oIdentityFile=/v

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Stefan Bodewig
On 2022-12-28, Eric Fetzer wrote: > Hi! Can anyone tell me what the command line equivalent to the following > directive in ant is? I'm afraid this is not easy to answer as Ant does not use the command line for this. Ant uses http://www.jcraft.com/jsch/ in order to execute the command and it is

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Ilya Basin
Hi Eric. I hope you're using the modern OpenSSH client program. Something like this: ssh -F none \ -oBatchMode=yes \ -oUser=myUser \ -oIdentityAgent=none \ -oIdentityFile=/var/lib/jenkins/.ssh/id_rsa \ -oPort=1401 \ -oUpdateHostKeys=no \ -oStrictHostKeyChecking=no \ myHost.myDomai

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
Yes, will do. Thanks again for your help! On Wed, Jun 17, 2020 at 12:23 PM Jaikiran Pai wrote: > Yes that looks like a bug. Can you create a bugzilla issue for this please? > > -Jaikiran > On 17/06/20 10:52 am, Dougal Graham wrote: > > OK, after digging a little bit, it turns out that I didn't

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Jaikiran Pai
Yes that looks like a bug. Can you create a bugzilla issue for this please? -Jaikiran On 17/06/20 10:52 am, Dougal Graham wrote: > OK, after digging a little bit, it turns out that I didn't have a > default identity file set in my ssh config. > > After rectifying that issue, I thought things were

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
OK, after digging a little bit, it turns out that I didn't have a default identity file set in my ssh config. After rectifying that issue, I thought things were fixed, but actually, they are still broken! [sshexec] Loading SSH configuration file /Users/dougal/.ssh/config [sshexec] Using SSH k

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
You are, of course, correct! Thank you. OK, running with debug I see: [sshexec] Loading SSH configuration file /Users/dougal/.ssh/config [sshexec] Using SSH key file null for host null So maybe it isn't picking up my host/default ssh key properly. ie: maybe I've configured my host wrong, or

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Jaikiran Pai
Hello Dougal, On 17/06/20 10:07 am, Dougal Graham wrote: > Hi Jaikaran, > > Thanks for getting back to me. I just got the code downloaded for Ant, > and I think I see the problem: > > protected void loadSshConfig() throws BuildException { > if (sshConfig != null && (userInfo.getName() == null

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
Hi Jaikaran, Thanks for getting back to me. I just got the code downloaded for Ant, and I think I see the problem: protected void loadSshConfig() throws BuildException { if (sshConfig != null && (userInfo.getName() == null || userInfo.getKeyfile() == null)) { It would seem that the sshConfig

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Jaikiran Pai
Hello Dougal, Can you get us the ant debug logs (using the -debug switch) when you run this target? -Jaikiran On 17/06/20 9:33 am, Dougal Graham wrote: > Hi Everyone, > > I just upgraded Ant to 1.10.8 so that I can use the new sshConfig feature > of sshexec, so I don't need to hardcode the locat

Re: sshexec

2015-02-17 Thread Eric Fetzer
I'm not exactly sure what's going on, the build won't error any more. I thought I'd resolved it by updating the timeout but it never took longer than 2 minutes. I'll keep my eyes peeled for this to return. Hopefully all is well as with my Syro-Phoenician daughter! ;0). Thanks! > On Feb 12,

Re: sshexec

2015-02-12 Thread Peter West
Someone who knows the codebase better than I do may choose to comment, but I can't imagine why a Java program with full access to the Javi API facilities would try to run a javascript script. From the look of the trace, the error is being reported bak to the sshexec process, so it's happening o

RE: sshexec

2015-02-12 Thread Martin Gainty
:/tmp/foo if the connection is refused for that user/password combination then you'll know username/password is incorrect then use the same username/password in sshexec ? M- > CC: user@ant.apache.org > From: elstonk...@yahoo.com.INVALID > Subject: Re: sshexec > Date: Thu, 12

Re: sshexec

2015-02-12 Thread Eric Fetzer
Yes Peter, the one line left is in the calling ant script. When it returns from the sshexec, always returning with success, sometimes sshexec must be misinterpreting as failure. I'm not sure where that JavaScript is coming from, I assumed that was a part of the sshexec task itself. BTW, thank

Re: sshexec

2015-02-12 Thread Peter West
Hi Eric, I'm still confused. When you say there's one line left in the ant script, I assume you're talking about the calling script I assume also that the one line left is the "copy" task that you see reporting below. In your original post, the copy task doesn't get executed because of a failu

Re: sshexec

2015-02-12 Thread Eric Fetzer
Here it is with a successful finish Peter:   [sshexec]   [sshexec] main:   [sshexec]   [sshexec]   [sshexec] BUILD SUCCESSFUL  [sshexec] Total time: 1 minute 9 seconds [copy] Copying 1 file to c:\BuildDeployScripts\dist\Logs\2.16.3.5-20150211-0807\output That's it, no stack trace.  Once the

Re: sshexec

2015-02-11 Thread Peter West
> I see sshexec finish with a successful status, then it gets back to the > calling task and bombs out. What is it that you actually see, when you "see sshexec finish with a successful status?" Obviously it's no the return value. Where's the javascript happening, and what is it doing that caus

Re: sshexec

2015-02-11 Thread Eric Fetzer
OK, seems to work one time, fail another, work one time, fail another...  Anyone even have a hint on how to trouble-shoot it?  I already have sshexec set to verbose and that just gives the stack trace.  Makes no sense to me. On Tuesday, February 10, 2015 2:36 PM, Eric Fetzer wrote:

RE: sshexec host login task auth fail multiplies

2013-02-14 Thread Dylan Clarke
In the jsch source, the class JSch has a block of static code to set up the configuration that includes config.put("MaxAuthTries", "6") changing this to a smaller number and rebuilding the jar from this source is one solution. >-Original Message- >From: mcook144sw [mailto:mcook14...@yah

Re: sshexec command output

2012-08-09 Thread Robert Larsen
sshexec can output to either a file (output="somefile.txt") or a property (outputproperty="sshexec_output"). Specifying one of those two should turn off the output to standard out. signature.asc Description: OpenPGP digital signature

Re: sshexec on remote server

2010-01-10 Thread eran123
Hi Antoine, Thank you very much. .profile made it worked :-) Regards, Eran antoinell wrote: > > Hello Eran, > > maybe your problem is that you need to execute explicitly in your > command the .profile or .bashrc or ... of the target user and host. > > you might want to do something like >

RE: sshexec on remote server

2010-01-05 Thread Thomas Loy
-Original Message- From: Antoine Levy Lambert [mailto:anto...@gmx.de] Sent: Tuesday, January 05, 2010 4:33 PM To: Ant Users List Subject: Re: sshexec on remote server Hello Eran, maybe your problem is that you need to execute explicitly in your command the .profile or .bashrc or ... of the target

Re: sshexec on remote server

2010-01-05 Thread Antoine Levy Lambert
Hello Eran, maybe your problem is that you need to execute explicitly in your command the .profile or .bashrc or ... of the target user and host. you might want to do something like command=". .profile && cd ${env.scripts.folder.path} && ./PingServer" regards, Antoine eran123 wrote: Hi,

Re: sshexec

2009-08-06 Thread Eric Fetzer
No one cares?  Well if anyone decides to fix it, please let me know so that I can take my workaround out... From: Eric Fetzer To: Ant Users List Sent: Wednesday, August 5, 2009 1:54:08 PM Subject: Re: sshexec In order to fix this, I had to write a macrodef

Re: sshexec

2009-08-05 Thread Eric Fetzer
etzer To: Ant Users List Sent: Wednesday, August 5, 2009 12:19:13 PM Subject: Re: sshexec I tried:         But it doesn't seem to work on newline/cr stuff...  This is nuts, is what I'm trying to do really all that tough? From: Eric Fetzer To:

Re: sshexec

2009-08-05 Thread Eric Fetzer
I tried:         But it doesn't seem to work on newline/cr stuff...  This is nuts, is what I'm trying to do really all that tough? From: Eric Fetzer To: Ant Users Sent: Wednesday, August 5, 2009 11:10:36 AM Subject: sshexec So sshexec is adding a carriag

Re: sshexec exit status 127

2008-09-03 Thread Robert Koberg
On Sep 2, 2008, at 11:58 PM, Stefan Bodewig wrote: On Tue, 2 Sep 2008, Robert Koberg <[EMAIL PROTECTED]> wrote: Hi, ant 1.7.1, jsch-0.1.33, commons-net-1.5.0-dev, Red Hat Enterprise Linux Server release 5.2 (Tikanga) I am trying to use ant on one server, which is using sshexec to invoke ant

Re: sshexec exit status 127

2008-09-02 Thread Stefan Bodewig
On Tue, 2 Sep 2008, Robert Koberg <[EMAIL PROTECTED]> wrote: > Hi, > > ant 1.7.1, jsch-0.1.33, commons-net-1.5.0-dev, Red Hat Enterprise > Linux Server release 5.2 (Tikanga) > > I am trying to use ant on one server, which is using sshexec to > invoke ant on a remote server. I also tried creating

Re: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-29 Thread mindspin311
Found a solution. Have to go into sudoers and comment 'requiretty' Doesn't seem to be a way around this other than commenting out this line. krzysieq wrote: > > Forgot to close the double quote at the end of arg line... > > 2008/7/25 Krzysieq <[EMAIL PROTECTED]> > >> Not sure, but maybe this

Re: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-25 Thread Krzysieq
Forgot to close the double quote at the end of arg line... 2008/7/25 Krzysieq <[EMAIL PROTECTED]> > Not sure, but maybe this will help You: > > > http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18641500.html >> Sent from the Ant - Use

Re: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-25 Thread Krzysieq
Not sure, but maybe this will help You: http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18641500.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > ---

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-24 Thread mindspin311
meh.. I give up. ssh'in into root by adding build's pub key to root's authorized_keys' file. Systems might have some problems with it, but it works for now. -- View this message in context: http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-t

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-23 Thread mindspin311
ll script: > ./antRunAsync.sh ./run.sh > > In this way I never use the -t argument and nohup works properly from > the run script. Maybe a similar setup would work for you? > > > -Original Message- > From: mindspin311 [mailto:[EMAIL PROTECTED] > Sent: Tuesday

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-23 Thread Barry Pape
nc.sh ./run.sh In this way I never use the -t argument and nohup works properly from the run script. Maybe a similar setup would work for you? -Original Message- From: mindspin311 [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 11:14 PM To: user@ant.apache.org Subject: RE: sshexec (ru

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread mindspin311
/marc.info/?l=ant-user&m=120128316829325&w=2 > > > -Original Message- > From: mindspin311 [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2008 11:08 AM > To: user@ant.apache.org > Subject: RE: sshexec (running remote commands with sudo) forced > psuedo-t

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread Barry Pape
To: user@ant.apache.org Subject: RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation [exec] Pseudo-terminal will not be allocated because stdin is not a terminal. Doesn't work. Tried it to run a remote command without -t for something like 'ls' and it works fine. It

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread mindspin311
[exec] Pseudo-terminal will not be allocated because stdin is not a terminal. Doesn't work. Tried it to run a remote command without -t for something like 'ls' and it works fine. It seems to have a problem with '-t' I thought exec was exactly like working on a command line. ruel

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread Loehr, Ruel
why can't you just do an exec with the command ssh -t .? -Original Message- From: mindspin311 [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 10:37 AM To: user@ant.apache.org Subject: sshexec (running remote commands with sudo) forced psuedo-tty allocation I'm trying to mimi

Re: sshexec ant task command not found

2008-04-15 Thread Alex Mayorga Adame
Can you confirm the dir command is in the PATH of the Windows host when you sshexec to it? Try to change your command to command=PATH just to confirm what's in there when you sshexec. Hope it helps -- View this message in context: http://www.nabble.com/sshexec-ant-task-command-not-found-tp1662

Re: sshexec ant task command not found

2008-04-14 Thread neitcouq
Hura ! It worked. Thanks ! -- View this message in context: http://www.nabble.com/sshexec-ant-task-command-not-found-tp16627332p16673657.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-ma

Re: sshexec ant task command not found

2008-04-11 Thread Peter Reilly
dir mkdir etc are not (as far as i know) exe es in windows they are built-in to cmd.exe you may need to do something like: command ="cmd /c dir E:\Share". Peter On Fri, Apr 11, 2008 at 11:39 AM, neitcouq <[EMAIL PROTECTED]> wrote: > > > I have a target in build.xml like that: > > >

Re: sshexec hangs

2008-02-21 Thread Steve Loughran
Z W wrote: Hi I have But for unknown reason, sshexec hangs when executing Ant 1.7 sun_files: [sshexec] Connecting to sun01:22 Why ? Anything I could do to overcome the hanging ? can you telnet to that port by hand? telnet sun01 22 can you ssh to that machine by hand? -- Steve Lou

Re: sshexec and rexec hung

2008-01-30 Thread Z W
Rob I didn't try that. I decided to take Chuck H. suggestion to kill the parent process of the child process that uses. It seems to work now. Appreciate your response. On Jan 30, 2008 3:33 PM, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: > I think this really depends on what you are

RE: sshexec and rexec hung

2008-01-30 Thread Anderson, Rob (Global Trade)
I think this really depends on what you are executing with your shell script. Do the same scripts hang when you execute outside ant, using rexec or ssh? Try using nohup and be sure to background any processes you start. -Rob A -Original Message- From: Z W [mailto:[EMAIL PROTECTED] Sent:

RE: SSHExec Target

2008-01-24 Thread Anderson, Rob (Global Trade)
ver y. -Rob A -Original Message- From: Rishi Gogia [mailto:[EMAIL PROTECTED] Sent: Thursday, January 24, 2008 11:15 AM To: Ant Users List Subject: RE: SSHExec Target Hi Rob Basically I have to perform some function of this script on one server and some on the other so i have one scri

RE: SSHExec Target

2008-01-24 Thread Anderson, Rob (Global Trade)
Post the relevant portion of your build.xml and the output. -Rob A -Original Message- From: Rishi Gogia [mailto:[EMAIL PROTECTED] Sent: Thursday, January 24, 2008 11:15 AM To: Ant Users List Subject: RE: SSHExec Target Hi Rob Basically I have to perform some function of this script

RE: SSHExec Target

2008-01-24 Thread Rishi Gogia
Script which is done in an SSHExec target. the whole script of server X works fine but the call to script on Server Y doesnt work. Please help me with it. Thanks, Rishi > Subject: RE: SSHExec Target> Date: Thu, 24 Jan 2008 11:03:01 -0800> From: > [EMAIL PROTECTE

RE: SSHExec Target

2008-01-24 Thread Anderson, Rob (Global Trade)
So you are using the sshexec task to connect to a remote server and execute a script that connects via ssh to another remote server. That doesn't really make sense to do, in my opinion. Why not just use sshexec to connect to the directly to the remote server you intend to execute something on? Why

RE: SSHExec Target

2008-01-24 Thread Amarjit Jutla
- From: Chuck Holzwarth [mailto:[EMAIL PROTECTED] Sent: Thursday, January 24, 2008 1:43 PM To: Ant Users List Subject: Re: SSHExec Target What does the sshexec code look like? Rishi Gogia <[EMAIL PROTECTED]> wrote: Hi I am using SSHExec target in my Build.xml which is calling a shell script

Re: SSHExec Target

2008-01-24 Thread Chuck Holzwarth
What does the sshexec code look like? Rishi Gogia <[EMAIL PROTECTED]> wrote: Hi I am using SSHExec target in my Build.xml which is calling a shell script. This shell script internally connects to another server in the network through SSH. The shell script is running fine when executed from sol

Re: sshexec and outputproperty

2008-01-24 Thread Chuck Holzwarth
As an answer, which resule would you want? There are multiple commands in the sshexec string. You are testing to assure that directory ${a_dir} exists or making the dir apparently. both commands "test" and "mkdir" return values. Does the destination OS perform shortcut execution? This problem is

Re: sshexec problem

2008-01-09 Thread Steve Loughran
[EMAIL PROTECTED] wrote: Hi, Can I get the environment that putty gives in a portable way. Such as calling some commands when logged in to switch. Am I right in thinking that /etc/profile is not called for sshexec which is the main problem. Sshexec gives me a TERM=dumb and Putty TERM=xterm.

RE: sshexec problem

2008-01-02 Thread ext-simon.steiner
From: ext Martin Gainty [mailto:[EMAIL PROTECTED] Sent: 02 January 2008 15:49 To: Steiner Simon (EXT-Alten/Southwood) Subject: RE: sshexec problem http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html#i16   Putty or (putty link) uses the env variables

RE: sshexec

2007-09-06 Thread Anderson, Rob (Global Trade)
Sent: Thursday, September 06, 2007 6:29 AM > To: Ant Users List > Subject: Re: sshexec > > Anderson, Rob (Global Trade) wrote: > > Usually this error is caused when you have not specified either > > trust="true" or knownhosts="something". You have set tru

Re: sshexec

2007-09-06 Thread Steve Loughran
Anderson, Rob (Global Trade) wrote: Usually this error is caused when you have not specified either trust="true" or knownhosts="something". You have set trust="true" though...I'm not sure what is causing the problem. Has the host changed its key recently? That may trigger something; it certa

Re: sshexec

2007-09-05 Thread Shankar S
Ant Version: 1.6.5 jsch version: jsch-0.1.32.jarls i can ssh into the host using putty ,,, OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006 Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: SC-Solaris-build.xml Detected Java version: 1.4 in: c:\j2sdk1.4.2_10\jre Detected OS: Windows 2003 parsin

RE: sshexec

2007-09-05 Thread Anderson, Rob (Global Trade)
Usually this error is caused when you have not specified either trust="true" or knownhosts="something". You have set trust="true" though...I'm not sure what is causing the problem. Couple questions: What version of Ant? What version of jsch? Can you ssh into the host with an ssh client? What versi

Re: sshexec

2007-09-05 Thread Manivannan Palanichamy
This page can help : http://wiki.apache.org/ant/NewAntFeaturesInDetail/Ssh -- Manivannan Palanichamy http://mani.gw.googlepages.com/index.html On 9/5/07, Shankar S <[EMAIL PROTECTED]> wrote: > > I have got the sshexec task in this format: > > trust="true" /> > > Ant throws up saying: > > com.jc

Re: sshexec

2007-09-05 Thread Vihan Pandey
> I have got the sshexec task in this format: > > trust="true" /> > > Ant throws up saying: > > com.jcraft.jsch.JSchException: reject HostKey: xxx Does the normal shell based sshexec works as in : # ssh [EMAIL PROTECTED] xx.sh Is it executing the xx.sh script remotely? Regards, - vihan -

Re: sshexec waiting

2007-02-15 Thread Antoine Levy-Lambert
Hello Alex, this is more a UNIX shell scripting question than an ant question. Use nohup to start your servers on the UNIX side. So write a wrapup script designed to be invoked by ssh, which does something like nohup sh start_server.sh Best regards, Antoine On Feb 15, 2007, at 7:37 PM, [

Re: Sshexec task hanging

2006-08-09 Thread Steve Loughran
Brown, Carlton wrote: I've got an sshexec task that never exits, and I need to solicit some opinions on the problem. The reasons behind it are well-known; if an ssh command starts a long-running in the background, then ssh doesn't know when it should exit. From the purist standpoint, this is ex

RE: sshexec hangs after remote script exits

2006-05-11 Thread Brown, Carlton
y, May 02, 2006 11:47 AM > To: Ant Users List > Subject: RE: sshexec hangs after remote script exits > > Did you mean to say ...ssh never detects that the script exits... ? > > What OS are you executing the script on? Can you send the relevant > portion of your build.xml please?

Re: sshexec hangs after remote script exits

2006-05-02 Thread Atsuhiko Yamanaka
Hi, 2006/5/3, Brown, Carlton <[EMAIL PROTECTED]>: I've got an sshexec command that calls a remote script. The remote script can take something like 5-15 minutes to run. Trouble is, the sshexec never detects that the script exists. What have I done wrong? Which ant version are you using? T

Re: sshexec hangs after remote script exits

2006-05-02 Thread Alexey N. Solofnenko
Try first with a simple command (like "ls"). Check if your command requests for input or output. Does your command spawns background processes (for example, starting a web server)? If so, does it redirect stdin, -out, -err streams (for example, "nohup" does not always do that)? Can you try to e

RE: sshexec hangs after remote script exits

2006-05-02 Thread Anderson, Rob (Global Trade)
Did you mean to say ...ssh never detects that the script exits... ? What OS are you executing the script on? Can you send the relevant portion of your build.xml please? What version of ssh server are you running? Also, try to see if you can get a script to return that takes like 2 min, 3 min, etc.

RE: sshexec fix for ant1.7 question

2006-01-27 Thread Anderson, Rob (Global Trade)
TECTED] > Sent: Thursday, January 26, 2006 4:40 AM > To: Ant Users List > Subject: Re: sshexec fix for ant1.7 question > > I was not clear. What a meant by patching ant is updating > some ant source files from 1.7, eg SSHExec.java, and > rebuilding ant locally (with the build.ba

Re: sshexec fix for ant1.7 question

2006-01-26 Thread glenn opdycke-hansen
I was not clear. What a meant by patching ant is updating some ant source files from 1.7, eg SSHExec.java, and rebuilding ant locally (with the build.bat file) I see that the new files are written to dist/lib and to dist/bin. specifically, i see ant-jsch.jar and ant.jar and others files. Should

Re: sshexec fix for ant1.7 question

2006-01-25 Thread Stefan Bodewig
On Wed, 25 Jan 2006, glenn opdycke-hansen <[EMAIL PROTECTED]> wrote: > I was looking for some additional info on 1.7. From your response, > it appears to be still a while before 1.7 becomes available. There is no release schedule for 1.7, yet. Which means it is at least a few months away (the l

RE: sshexec fix for ant1.7 question

2006-01-25 Thread Anderson, Rob (Global Trade)
> Sent: Wednesday, January 25, 2006 4:30 AM > To: Ant Users List > Subject: Re: sshexec fix for ant1.7 question > > Thanks, I have done that. > I was looking for some additional info on 1.7. From your > response, it appears to be still a while before 1.7 becomes available. &g

Re: sshexec fix for ant1.7 question

2006-01-25 Thread glenn opdycke-hansen
Thanks, I have done that. I was looking for some additional info on 1.7. From your response, it appears to be still a while before 1.7 becomes available. Is there information or a howto on patching ant? --glenn On 1/23/06, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote: > Which option is

RE: sshexec fix for ant1.7 question

2006-01-23 Thread Anderson, Rob (Global Trade)
Which option is better really depends on a lot of things. I would patch 1.6.5. -Rob Anderson > -Original Message- > From: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 22, 2006 7:37 AM > To: user@ant.apache.org > Subject: sshexec fix for ant1.7 question > > I h

RE: Question re sshexec

2005-12-21 Thread Anderson, Rob (Global Trade)
ery=ssh&sektion=1 Read the Authentication section. Pay special attention to the 4th - 6th paragraphs. > > Rhino > > - Original Message - > From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> > To: "Rhino" <[EMAIL PROTECTED]>; &q

Re: Question re sshexec

2005-12-21 Thread Rhino
ers List" Sent: Wednesday, December 21, 2005 5:51 AM Subject: Re: Question re sshexec Rhino wrote: I've read the documentation you suggested - actually, I read the whole page - but only half understand it so I have some followup questions. Am I correct in understanding that Ant need

Re: Question re sshexec

2005-12-21 Thread Steve Loughran
ot;http://myserver.com/home/rhino/.ssh/id_rsa";? Rhino - Original Message - From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> To: "Rhino" <[EMAIL PROTECTED]>; "ant-user" Sent: Tuesday, December 20, 2005 6:01 PM Subject: RE: Question

Re: Question re sshexec

2005-12-20 Thread Rhino
IL PROTECTED]> To: "Rhino" <[EMAIL PROTECTED]>; "ant-user" Sent: Tuesday, December 20, 2005 6:01 PM Subject: RE: Question re sshexec Actually my question was about the version of ssh you are using on your client machine, not the server, but both were answered. This does

RE: Question re sshexec

2005-12-20 Thread Anderson, Rob (Global Trade)
nal Message- > From: Rhino [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 20, 2005 2:51 PM > To: ant-user > Cc: Anderson, Rob (Global Trade) > Subject: Re: Question re sshexec > > I've finally received an answer about our SSH setup from the > administrator of

Re: Question re sshexec

2005-12-20 Thread Rhino
(Global Trade)" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, December 19, 2005 2:11 PM Subject: RE: Question re sshexec task It may be that your ssh keyfile is in the wrong format. What version/vendor of ssh did you use to generate the keyfile? -Rob Anderso

Re: Question re sshexec task

2005-12-19 Thread Rhino
I'm not sure. I'll check with the system administrator and get back to you Rhino - Original Message - From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, December 19, 2005 2:11 PM Subject: RE: Question r

RE: Question re sshexec task

2005-12-19 Thread Anderson, Rob (Global Trade)
> Also, just a little thing but how do I notify the developer > of this task about the typo in the error message; he/she's > got "invalid" spelled without the 'l'. This is an optional > task so I'm not sure if I have to contact them directly or if > I can get a message to them via this mailing

RE: Question re sshexec task

2005-12-19 Thread Anderson, Rob (Global Trade)
It may be that your ssh keyfile is in the wrong format. What version/vendor of ssh did you use to generate the keyfile? -Rob Anderson > -Original Message- > From: Rhino [mailto:[EMAIL PROTECTED] > Sent: Saturday, December 17, 2005 3:31 PM > To: ant-user > Subject: Ques

RE: Question re sshexec task

2005-12-19 Thread Rebhan, Gilbert
Hi, Rhino -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Monday, December 19, 2005 2:55 PM To: Ant Users List Subject: Re: Question re sshexec task >Oh dear, this looks like it is going to be a lot more involved than just >using the sshexec and scp tasks

Re: Question re sshexec task

2005-12-19 Thread Rhino
ve to start it manually. Rhino - Original Message - From: "Rebhan, Gilbert" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, December 19, 2005 4:25 AM Subject: RE: Question re sshexec task Hi, Rhino -Original Message- From: Rhino [mailto

RE: Question re sshexec task

2005-12-19 Thread Rebhan, Gilbert
Hi, -Original Message- From: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] Sent: Monday, December 19, 2005 1:25 PM To: Ant Users List Subject: Re: Question re sshexec task >Thanks for providing the example of exec. >I have questions: >Which system is the ant script r

Re: Question re sshexec task

2005-12-19 Thread glenn opdycke-hansen
script). rexec has issues, too. --glenn On 12/19/05, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: > > > Hi, Rhino > > -Original Message- > From: Rhino [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 18, 2005 3:30 PM > To: Ant Users List > Subj

RE: Question re sshexec task

2005-12-19 Thread Rebhan, Gilbert
Hi, Rhino -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: Sunday, December 18, 2005 3:30 PM To: Ant Users List Subject: Re: Question re sshexec task /* Could you possibly post a small example of the technique you're using? I'm not sure how to combine exec wi

Re: Question re sshexec task

2005-12-18 Thread Rhino
- Original Message - From: "Gilbert Rebhan" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Sunday, December 18, 2005 5:39 AM Subject: Re: Question re sshexec task Hi, Rhino Is there any problem with blanks or apostrophes within the name of a keyfil

Re: Question re sshexec task

2005-12-18 Thread Gilbert Rebhan
Hi, Rhino > Is there any problem with blanks or apostrophes within the name of a > keyfile in an sshexec task? I am running Ant 1.6.5 in Eclipse 3.1.1. > [ ... ] my practical experience with the ssh task and ant 1.6.5 some time ago = didn't work for me on AIX, even with the most actual jsch.jar

Question re sshexec task

2005-12-17 Thread Rhino
Is there any problem with blanks or apostrophes within the name of a keyfile in an sshexec task? I am running Ant 1.6.5 in Eclipse 3.1.1. Our environment changed recently so I need to modify my build scripts to use keys instead of passwords. After reading the sshexec article in the Ant manual,

RE: Sshexec: Auth fail

2005-10-13 Thread Dick, Brian E.
Cool. Thanks. -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 4:50 PM To: Ant Users List Subject: RE: Sshexec: Auth fail Actually... that was on ant-dev, the supplier was one of the (AFAIU) key guys at JCraft, the writers of the jsch

RE: Sshexec: Auth fail

2005-10-11 Thread Matt Benson
h worked. Here's the URL to the patch. This > should be added to > the code base. > > http://marc.theaimsgroup.com/?l=ant-dev&m=111959408515300&w=2 > > -Original Message- > From: Dick, Brian E. > Sent: Tuesday, October 11, 2005 2:15 PM > To: Ant Us

RE: Sshexec: Auth fail

2005-10-11 Thread Dick, Brian E.
The patch worked. Here's the URL to the patch. This should be added to the code base. http://marc.theaimsgroup.com/?l=ant-dev&m=111959408515300&w=2 -Original Message- From: Dick, Brian E. Sent: Tuesday, October 11, 2005 2:15 PM To: Ant Users List Subject: RE: Sshexec: A

RE: Sshexec: Auth fail

2005-10-11 Thread Dick, Brian E.
, stdout 0.0, stderr 2.8 debug1: Exit status 0 -Original Message- From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 1:59 PM To: Ant Users List Subject: RE: Sshexec: Auth fail You will probably want to get ssh working from cygwin before att

RE: Sshexec: Auth fail

2005-10-11 Thread Anderson, Rob (Global Trade)
rian E. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 11, 2005 8:25 AM > To: Ant Users List > Subject: RE: Sshexec: Auth fail > > Can I get some help for the problem below? > > -Original Message- > From: Dick, Brian E. > Sent: Friday, October 07, 2005 11:24

RE: Sshexec: Auth fail

2005-10-11 Thread Dick, Brian E.
Can I get some help for the problem below? -Original Message- From: Dick, Brian E. Sent: Friday, October 07, 2005 11:24 AM To: Ant Users List Subject: Sshexec: Auth fail Any hints on how to debug the sshexec task "auth fail"? It was working a couple of weeks ago, but it is now failing f

  1   2   >