Re: How to enable compression in SSH/SCP task?

2009-07-21 Thread Atsuhiko Yamanaka
en using jsch[1] internally, and it has supported the packet compression by using jzlib[2]. The jzlib has been licensed under the revised BSD license. If it is allowed to use jzlib in SCP task, it will be easy to add the support for the requested functionality. [1] http://www.jcraft.com/jsc

Re: Question about scp

2008-07-13 Thread Atsuhiko Yamanaka
ext and all of > its subdirectories to the remote machine? I've tried it every way I can > think of but it never recurses. Have you tried Ant 1.7.1? If not yet, it may be worth of trying it. It is well known that there exists a bug in scp task of Ant 1.7.0. -- Atsuhiko Yamanaka JCraft,Inc.

Re: SCP in Ant

2008-07-01 Thread Atsuhiko Yamanaka
Hi, 2008/7/2, Chris Green <[EMAIL PROTECTED]>: > *com.jcraft.jsch.jschexception: java.net.UnknownHostException* > The appropriate piece of code I am using is :- > >* At least, it should not be //10.68.7.7, and should be 10.68.7.7 I guess.

Re: Ant on AIX using SCP to transfer files with ssh2 keys

2008-04-29 Thread Atsuhiko Yamanaka
Hi, 2008/4/30 MaxSteel <[EMAIL PROTECTED]>: > > So from my research, I am using jsch on apache-ant v1.7.0 > > Also, the type of keys I am using on these servers is known as "tectia > keys". I don't know about "tectia keys", but jsch only accepts private keys in openssh format. --

Re: scp fileset and copy subdirectory/files issue

2008-03-16 Thread Atsuhiko Yamanaka
Hi, 2008/1/24, Bizard Nicolas (KIRO 41) <[EMAIL PROTECTED]>: > i ran into the same problems, i think it's a bug... Can you try ant 1.7.1beata[1] to check if it has been fixed? [1] http://people.apache.org/~kevj/ant/ant-1.7.1beta.tar.gz --

Re: Can't connect to unix server from windows server...

2008-01-30 Thread Atsuhiko Yamanaka
2008/1/31, Christopher Styles <[EMAIL PROTECTED]>: > Hi, > > I'm trying to run a target from my Windows 2003 Server build box to connect > to a solaris server to execute a command, but I'm getting " > com.jcraft.jsch.JSchException: Auth fail"... Does anyone know how to resolve > this issue...?? Wh

Re: SCP Task & umask

2007-08-30 Thread Atsuhiko Yamanaka
Hi, 2007/8/31, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]>: > The default umask is determined by the ssh server. I think it is set at > compile time. Same with $PATH. Your .bashrc is not read when you use > scp. You should see the same results when using scp on the command line. I have not t

Re: Ant sshexec random failures

2007-06-01 Thread Atsuhiko Yamanaka
Hi, 2007/6/1, ken77 <[EMAIL PROTECTED]>: I am having the same exactly problem with the sshexec, the same script sometimes works, sometimes it gives me "Remote command failed with exit status -1" , I was wondering if you have found the reason for this and a possible solution ? May I ask you to

Re: Copy Linked files with scp

2006-09-27 Thread Atsuhiko Yamanaka
Hi, 2006/9/21, Benjamin H. <[EMAIL PROTECTED]>: In the directory are some linked-files. Following error resulted: BUILD FAILED C:\workspace\Synchro - Tool\Monitoringtool\monitor.xml:109: java.io.IOException: scp: /***/***/***/***//def_raumvars.sh: No such file or directory def_raumvars.sh l

Re: exit from the script running in the remote machine using sshexec

2006-05-15 Thread Atsuhiko Yamanaka
Hi, Which ant version are you using? There was a bug that stdout will be closed after "sshexec" task. How about adding "touch" task? Will it be invoked? 2006/5/15, Venkatesh Vijayakumar04 <[EMAIL PROTECTED]>: That stdout-closing bug has been fixed in the nightly snapshot. --

Re: ANT SCP Via a Java App

2006-05-09 Thread Atsuhiko Yamanaka
Hi, 2006/5/9, Gareth Kelly <[EMAIL PROTECTED]>: Works fine when passing in username and password. I set up a trusted connection by creating a public/private key pair and appending the identity.pub to the remote authorized_keys. The internal ssh client can not understand ssh1 public/private key

Re: sshexec hangs after remote script exits

2006-05-02 Thread Atsuhiko Yamanaka
e you using? There was a problem that the stdout will be closed at the end of sshexec and any outputs will not appear anymore after sshexec. Does 'hang' mean any tasks will not be invoked after sshexec or not outputs? That sdtout closing problem has been already fixed in SVN repository. S

[patch] sftp task

2006-04-26 Thread Atsuhiko Yamanaka
Hi there, I have posted a patch to implement sftp task at http://issues.apache.org/bugzilla/show_bug.cgi?id=39373#c13 If you are interested in it, please try. Commnets, suggetions and questions are welcome. PS. that task is implemented as 'org.apache.tools.ant.taskdefs.optional.ssh.SFTP',

Re: SCP Task Error

2006-04-18 Thread Atsuhiko Yamanaka
eferIPv4Stack=true to javaVM? I have found a similar problem at https://bugs.eclipse.org/bugs/show_bug.cgi?id=118548 Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 +1-415-578-3454 Fax +81-22-22

Re: Scp: reject HostKey error?

2006-04-18 Thread Atsuhiko Yamanaka
in. In current implementation, for each scp/sshexec task, a ssh session will be established and not be shared with other scp/sshexecs. The caching and sharing ssh sessions will improve the perfomance and save the CPU time usage, so it should be implemeted, IMHO. Sincerely, --

Re: scp problem: received directory without -r

2005-08-19 Thread Atsuhiko Yamanaka
Hi, On 7/27/05, Nicolas Vervelle <[EMAIL PROTECTED]> wrote: > Hi, > > I have a build file to update a website from my own pc using task. > It was working perfectly until more than a week ago. > I now have an error message when it tries to upload a file in a > subdirectory : > "server indicated a

Re: Problem executing task

2005-08-19 Thread Atsuhiko Yamanaka
Hi, On 8/19/05, Karunakar Chatla <[EMAIL PROTECTED]> wrote: > > >port="23" > username="user" > password="password" > command="ls" > output="${output.folder.path}\ssh.log" > failonerror="true"/> > > Usually, sshd will wait for connections at TCP port 22. Is TCP

Re: Multiple invocations

2005-08-17 Thread Atsuhiko Yamanaka
t? [1] org.apache.tools.ant.util.TeeOutputStream [2] org.apache.tools.ant.taskdefs.optional.ssh.SSHExec Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 4-1 OHMACHI 1-CHOME AOBA-KU, SENDAI, MIYAGI 980-0804 Japan. Tel +81-22-723-2150 +1-415-578-3454 Fax +81-22-224-8773 Skype callto://jcraft/

Re: Multiple invocations

2005-08-15 Thread Atsuhiko Yamanaka
Hi, +-From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> -- |_Date: Mon, 15 Aug 2005 11:53:12 -0700 _ | |Try the same tests with jsch 0.1.16. What are the results? I |believe these are problems with Jsch. -Rob Anderson ... |> BUILD FAILED |> P

Re: FW: Connection Failures On SSHExec Task

2005-06-06 Thread Atsuhiko Yamanaka
gt; > > [sshexec] Connecting to xxx.com:22 |> > > [sshexec] Connecting to xxx.com:22 |> > > [sshexec] Connecting to xxx.com:22 I have not found the reason yet, but I have remembered that OpenSSH's sshd allows to use only 10 sessions simultaneously on the sing

Re: sshexec Authentication Problem with SuSE 9.1

2004-12-08 Thread Atsuhiko Yamanaka
I'm not familiar with the configuration of OpenSSH 3.8, but I guess you can enable 'passwd' authentication and disable 'keyborad-interactive' authentication by modifying /etc/ssh/sshd_config. On Wed, 08 Dec 2004 18:40:36 +0100, Peter Neu <[EMAIL PROTECTED]> wrote: > If I got you right, then the ss

Re: sshexec Authentication Problem with SuSE 9.1

2004-12-08 Thread Atsuhiko Yamanaka
Hi, According to a log from 'ssh -v -v -v localhost', which was sent to me directly, his sshd supports 'publickey,keyboard-interactive'. I think that is the reason; sshexec in Ant has not supported 'keyborad-interactive' yet. It is easy to add KbdInt support, but it is for the interactive session

Re: sshexec Authentication Problem with SuSE 9.1

2004-12-08 Thread Atsuhiko Yamanaka
Hi, On Wed, 08 Dec 2004 15:11:50 +0100, Peter Neu <[EMAIL PROTECTED]> wrote: > Hello Rob, > > Atsuhiko suggested to enable "PAMAuthenticationViaKbdInt" which is > decaprecated > in OpenSSH.3.8. No, I have not suggested you that. That is just a question. Have you enabled PAM authentication via

Re: sshexec Authentication Problem with SuSE 9.1

2004-12-08 Thread Atsuhiko Yamanaka
Hi, Do you have a line, PAMAuthenticationViaKbdInt yes on your /etc/ssh/sshd_config ? On Tue, 07 Dec 2004 20:48:16 +0100, Peter Neu <[EMAIL PROTECTED]> wrote: > Hello Rob, > > I only got SuSE 9.1 client/servers in my network. I works on neither of > them. > I got Jsch 0.1.18. I tried wrong