Re: [JSch-users] Doc and command su

2010-04-23 Thread Keith Alan Richardson
There is no documentation. Look at the examples directory For running commands remotely, even su, look at Exec.java in the examples directory On Apr 23, 2010 2:41 PM, "Vivien Duparc" wrote: Hi, I'm a new user of api jsch and i have two question please First, is There any doc anywhere ? Or t

Re: [JSch-users] java.io.IOException: channel is broken

2010-04-23 Thread Halepaska, Scott
Unfortunately the new version hangs at the same place in the code and produces the same error: com.jcraft.jsch.JSchException: java.io.IOException: channel is broken Please let me know if I can try some other approach. Thanks. Scott Halepaska -Original Message- From: Atsuhiko Yamana

Re: [JSch-users] session.connect(int timeout) not working?

2010-04-23 Thread Mick McLaughlin
well my UserInfo implementation is just a stub class with setters and getters for the hostname, user & pass. The user does not receive a separate prompt for the password. I.E. MyUserInfo info = new MyUserInfo("some hostname", "some user", "some pass") the method getPassword() returns this.pass wh

Re: [JSch-users] java.io.IOException: channel is broken

2010-04-23 Thread Atsuhiko Yamanaka
Hi, +-From: "Halepaska, Scott" -- |_Date: Fri, 23 Apr 2010 08:26:02 -0600 ___ | | Here is the output when connected to host: |Connected to host. |Escape character is '^]'. |SSH-2.0-mod_sftp/0.9.7 I have recognized that there is a similar problem in connec

Re: [JSch-users] session.connect(int timeout) not working?

2010-04-23 Thread Atsuhiko Yamanaka
Hi, +-From: Mick McLaughlin -- |_Date: Fri, 23 Apr 2010 11:20:33 -0400 __ | |well actually no its not being invoked infinitely, however it is invoked |approx 35-40 times. FYI, in the testcase, the pass is correct but the user |is not... What do you mean 'the pass i

Re: [JSch-users] session.connect(int timeout) not working?

2010-04-23 Thread Mick McLaughlin
well actually no its not being invoked infinitely, however it is invoked approx 35-40 times. FYI, in the testcase, the pass is correct but the user is not... On Fri, Apr 23, 2010 at 11:15 AM, Mick McLaughlin wrote: > yes it is! Should I be doing something to keep this from happening? > thanks,

Re: [JSch-users] session.connect(int timeout) not working?

2010-04-23 Thread Mick McLaughlin
yes it is! Should I be doing something to keep this from happening? thanks, Mick On Thu, Apr 22, 2010 at 9:48 PM, Atsuhiko Yamanaka wrote: > Hi, > > +-From: Mick McLaughlin -- > |_Date: Thu, 22 Apr 2010 16:58:04 -0400 __ >| > |I am attempting to implement a timeout using

Re: [JSch-users] java.io.IOException: channel is broken

2010-04-23 Thread Halepaska, Scott
Here is the output when connected to host: Connected to host. Escape character is '^]'. SSH-2.0-mod_sftp/0.9.7 Scott Halepaska -Original Message- From: Atsuhiko Yamanaka [mailto:y...@jcraft.com] Sent: Thursday, April 22, 2010 7:52 PM To: Halepaska, Scott Cc: jsch-users@lists.source

[JSch-users] Doc and command su

2010-04-23 Thread Vivien Duparc
Hi, I'm a new user of api jsch and i have two question please First, is There any doc anywhere ? Or the only help for beginner are examples ? Second, do you know how to execute an su command please ? Thx. --