× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Finally got it figured out.

What happened was that my co-worker has configured his Websphere App
server to run as a window service. It is setup to run it under the
local-system-user-account. For security reason, Putty will always
prompt user to accept a host key if it is not already accepted and saved
in the window registry for the user. So, the process was hanging
because Putty was asking user if the host key should be accepted/saved
to the registry:

Here is what I found in Putty manual:

Next, you are likely to need to avoid the various interactive prompts
Plink can produce. You might be prompted to verify the host key of the
server you're connecting to, to enter a user name, or to enter a
password.

To avoid being prompted for the server host key when using Plink for an
automated connection, you should first make a manual connection (using
either of PuTTY or Plink) to the same server, verify the host key (see
section 2.2 for more information), and select Yes to add the host key to
the Registry. After that, Plink commands connecting to that server
should not give a host key prompt unless the host key changes.





"Lim Hock-Chai" <Lim.Hock-Chai@xxxxxxxxxxxxxxx> wrote in message
news:<mailman.2938.1253288230.1811.midrange-l@xxxxxxxxxxxx>...
I'm encountering a strange ssh problem that I just can't quite figure
out.

Below desc what I'm doing:
I've writen a simple java program that uses java Runtime to run a Putty
plink command (Note:plink command is equivalent of ssh command in
openSSH). It works fine when I run it on my PC as stand alone java apps
and it also work fine when I run it in a servlet. However, when my
co-worker run it. It works when she run it as a stand alone java apps
but it failed (hung) when she run it in a servlet, which run in a
Websphere 6.1 server.

When I did a netstat on iseries, I see this:
Opt Address Port Port Idle Time State
10.50.16.82 3440 ssh 000:03:11 FIN-wait-2


When she did a netstat on her PC, she see this:
TCP 10.50.16.82:3440 10.100.50.14:22 CLOSE_WAIT
3020



It seems like her PC is wait on something from iseries ssh server and
the iseries ssh server is waiting for her pc for something. The
puzzling part is that it works fine when she run it as a stand alone
java app.





----------

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.