Dear Yamanaka-san, I have a weird experience that I was wondering whether you might have some hints on what to look for. I have previously tested Jsch 0.1.20, 0.1.25, 0.1.30, 0.1.35, 0.1.36, 0.1.40, 0.1.42, 0.1.44 and this has never happened before:
I build Jsch 0.1.46 and 0.1.47 using Ant 1.8.1, JDK 1.4.2 and ran a number of test files with JDK 1.4.2, 1.5.0, 1.6.0, and 1.7.0 on Red Hat Linux and Solaris 8. All my tests ran fine *except* for 1.7.0; when my tests run on 1.7.0, I get a prompt for Kerberos username and password, and it does not matter what I type - my user ID, someone else's user ID, empty user ID, empty password, someone else's password, my password, or any combination of user name and password - wrong password, wrong user ID it does not matter --- my scripts *will* run fine and complete the tests correctly. So obviously, my test files give both version of Jsch a PASS, but the only thing is that running with 1.7.0 means the tests are no longer non-interactive --- I have to press return twice on every test when prompted for Kerberos user name and password, and once I press return twice, the test ran fine. Using 1.4.2, 1.5.0, 1.6.0 did not give me any "pause" when I ran the tests. Any ideas? Best regards. --- cllee Expected Output: bash-3.00$ make date >> p.htm ScpTo Password SUCCESS ScpFrom Password SUCCESS File compare Password SUCCESS scp Password SUCCESS date >> p.htm ScpTo DSA SUCCESS ScpFrom DSA SUCCESS File compare DSA SUCCESS scp DSA SUCCESS date >> p.htm ScpTo RSA SUCCESS ScpFrom RSA SUCCESS File compare RSA SUCCESS scp RSA SUCCESS scp PW[DR]SA SUCCESS date >> p.htm sftp Password SUCCESS File compare Password SUCCESS date >> p.htm sftp DSA SUCCESS File compare DSA SUCCESS date >> p.htm sftp RSA SUCCESS File compare RSA SUCCESS sftp PW[DR]SA SUCCESS scp+sftp PW[DR]SA SUCCESS Hit return to stop this test after seeing the motd of the remote host Last login: Tue Apr 10 21:26:24 2012 from sstm8259dap.stm.swissbank.com _______________________________________________________________________ | | | *** W A R N I N G *** | | | | THIS IS A PRIVATE SYSTEM. NON-AUTHORISED ACCESS IS PROHIBITED. | | | | By accepting this notice, you are confirming your authorisation | | to access the UBS AG computer network and appropriate data held | | therein. In addition, you are confirming that you are the sole | | and authorised user of the account about to be used. | | | | In a number of jurisdictions, it is a criminal offence to access, | | alter or remove any information on this network without authority | | to do so regardless of the appointment or position held. Legal | | action may be taken against those who breach this notice. | | | | *IF YOU ARE NOT AN AUTHORISED USER , DISCONNECT IMMEDIATELY* | | | |_______________________________________________________________________ | [userA@my_hostname ~]$ Hit return to stop this test after seeing the motd of the remote host _______________________________________________________________________ | | | *** W A R N I N G *** | | | | THIS IS A PRIVATE SYSTEM. NON-AUTHORISED ACCESS IS PROHIBITED. | | | | By accepting this notice, you are confirming your authorisation | | to access the UBS AG computer network and appropriate data held | | therein. In addition, you are confirming that you are the sole | | and authorised user of the account about to be used. | | | | In a number of jurisdictions, it is a criminal offence to access, | | alter or remove any information on this network without authority | | to do so regardless of the appointment or position held. Legal | | action may be taken against those who breach this notice. | | | | *IF YOU ARE NOT AN AUTHORISED USER , DISCONNECT IMMEDIATELY* | | | |_______________________________________________________________________ | [userA@my_hostname ~]$ Hit return to stop this test after seeing the motd of the remote host Last login: Tue Apr 10 21:28:40 2012 from sstm8259dap.stm.swissbank.com _______________________________________________________________________ | | | *** W A R N I N G *** | | | | THIS IS A PRIVATE SYSTEM. NON-AUTHORISED ACCESS IS PROHIBITED. | | | | By accepting this notice, you are confirming your authorisation | | to access the UBS AG computer network and appropriate data held | | therein. In addition, you are confirming that you are the sole | | and authorised user of the account about to be used. | | | | In a number of jurisdictions, it is a criminal offence to access, | | alter or remove any information on this network without authority | | to do so regardless of the appointment or position held. Legal | | action may be taken against those who breach this notice. | | | | *IF YOU ARE NOT AN AUTHORISED USER , DISCONNECT IMMEDIATELY* | | | |_______________________________________________________________________ | [userA@my_hostname ~]$ Shell PW[DR}SA SUCCESS bash-3.00$ Unexpected output: bash-3.00$ make date >> p.htm Kerberos username [userA]: Kerberos password for userA: ScpTo Password SUCCESS Kerberos username [userA]: Kerberos password for userA: ScpFrom Password SUCCESS File compare Password SUCCESS scp Password SUCCESS date >> p.htm Kerberos username [userA]: Kerberos password for userA: ScpTo DSA SUCCESS Kerberos username [userA]: Kerberos password for userA: ScpFrom DSA SUCCESS File compare DSA SUCCESS scp DSA SUCCESS date >> p.htm Kerberos username [userA]: Kerberos password for userA: ScpTo RSA SUCCESS Kerberos username [userA]: Kerberos password for userA: ScpFrom RSA SUCCESS File compare RSA SUCCESS scp RSA SUCCESS scp PW[DR]SA SUCCESS date >> p.htm Kerberos username [userA]: Kerberos password for userA: sftp Password SUCCESS File compare Password SUCCESS date >> p.htm Kerberos username [userA]: Kerberos password for userA: sftp DSA SUCCESS File compare DSA SUCCESS date >> p.htm Kerberos username [userA]: Kerberos password for userA: sftp RSA SUCCESS File compare RSA SUCCESS sftp PW[DR]SA SUCCESS scp+sftp PW[DR]SA SUCCESS Hit return to stop this test after seeing the motd of the remote host Kerberos username [userA]: Kerberos password for userA: Last login: Tue Apr 10 21:26:24 2012 from sstm8259dap.stm.swissbank.com _______________________________________________________________________ | | | *** W A R N I N G *** | | | | THIS IS A PRIVATE SYSTEM. NON-AUTHORISED ACCESS IS PROHIBITED. | | | | By accepting this notice, you are confirming your authorisation | | to access the UBS AG computer network and appropriate data held | | therein. In addition, you are confirming that you are the sole | | and authorised user of the account about to be used. | | | | In a number of jurisdictions, it is a criminal offence to access, | | alter or remove any information on this network without authority | | to do so regardless of the appointment or position held. Legal | | action may be taken against those who breach this notice. | | | | *IF YOU ARE NOT AN AUTHORISED USER , DISCONNECT IMMEDIATELY* | | | |_______________________________________________________________________ | [userA@my_hostname ~]$ Hit return to stop this test after seeing the motd of the remote host Kerberos username [userA]: Kerberos password for userA: Last login: Tue Apr 10 21:28:33 2012 from sstm8259dap.stm.swissbank.com _______________________________________________________________________ | | | *** W A R N I N G *** | | | | THIS IS A PRIVATE SYSTEM. NON-AUTHORISED ACCESS IS PROHIBITED. | | | | By accepting this notice, you are confirming your authorisation | | to access the UBS AG computer network and appropriate data held | | therein. In addition, you are confirming that you are the sole | | and authorised user of the account about to be used. | | | | In a number of jurisdictions, it is a criminal offence to access, | | alter or remove any information on this network without authority | | to do so regardless of the appointment or position held. Legal | | action may be taken against those who breach this notice. | | | | *IF YOU ARE NOT AN AUTHORISED USER , DISCONNECT IMMEDIATELY* | | | |_______________________________________________________________________ | [userA@my_hostname ~]$ Hit return to stop this test after seeing the motd of the remote host Kerberos username [userA]: Kerberos password for userA: Last login: Tue Apr 10 21:28:40 2012 from sstm8259dap.stm.swissbank.com _______________________________________________________________________ | | | *** W A R N I N G *** | | | | THIS IS A PRIVATE SYSTEM. NON-AUTHORISED ACCESS IS PROHIBITED. | | | | By accepting this notice, you are confirming your authorisation | | to access the UBS AG computer network and appropriate data held | | therein. In addition, you are confirming that you are the sole | | and authorised user of the account about to be used. | | | | In a number of jurisdictions, it is a criminal offence to access, | | alter or remove any information on this network without authority | | to do so regardless of the appointment or position held. Legal | | action may be taken against those who breach this notice. | | | | *IF YOU ARE NOT AN AUTHORISED USER , DISCONNECT IMMEDIATELY* | | | |_______________________________________________________________________ | [userA@my_hostname ~]$ Shell PW[DR}SA SUCCESS bash-3.00$ -- Chia-Ling LEE IT Risk UBS AG, Stamford Branch 400 Atlantic St, Stamford, CT 06901 Tel: +1-(203)719-3486 E-mail: chia-ling....@ubs.com Internet: www.ubs.com -----Original Message----- From: Atsuhiko Yamanaka [mailto:y...@jcraft.com] Sent: Thursday, April 05, 2012 4:58 AM To: jsch-users@lists.sourceforge.net Subject: [JSch-users] ANNOUNCE: JSch 0.1.47 Hi there, JSch 0.1.47 has been released. It is available at http://sourceforge.net/projects/jsch/files/jsch/0.1.47/jsch-0.1.47.zip/d ownload and its md5sum is 0f4a285d9633c944659fcef756aedf58 And you can get its byte code in jar file format at http://sourceforge.net/projects/jsch/files/jsch.jar/0.1.47/jsch-0.1.47.j ar/download and its md5sum is 8165a5d05c551c0cc1cef8a6ead92546 Changes since version 0.1.46: - bugfix: failed to initialize channels for the stream forwarding. FIXED - change: Session#getHostKey() will return the given hostkey even if session is not established. - change: Logger will record additional messages about algorithm negotiations. - feature: added ChannelSftp#ls(String path, LsEntrySelector selector) method. - feature: added IdentityRepository#{getName(),getStatus()} methods. ------------------------------------------------------------------------ ------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mails are not encrypted and cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. UBS reserves the right to retain all messages. Messages are protected and accessed only in legally justified cases. ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users