displaying banner on ssh2 connection

Steven McDermott steven.mcdermott at intelliden.com
Tue Jun 10 17:27:59 MEST 2008


so can you tell me how to implement dusplayBanner in the subclass!?


-----Original Message-----
From: maf at appgate.com [mailto:maf at appgate.com]
Sent: Mon 09/06/2008 2:02 PM
To: Steven McDermott
Cc: mindterm-users at appgate.com
Subject: Re: displaying banner on ssh2 connection
 
On  4 jun, Steven McDermott wrote:
> client = new SSH2SimpleClient(transport, userName, password);
> 
> This gets me the connection ok but the terminal does not display the
> banners.  The frustrating thing is I can see the banners in the java
> console!  Any ideas how I get them to display are much appreciated.

You have to supply your own instance of SSH2Authenticator to
SSH2SimpleClient. The displayBanner() function in that class will be
called with the banner. Look in the code of SSH2SimpleClient and you
will see how in the case above it creates an instance of
SSH2Authenticator and adds an SSH2AuthPassword class to it. Do the same
but instead have a subclass of SSH2Authenticator which does what you
want for displayBanner(). You can pass your subclass to SSH2SimpleClient
instead of the password.

	/MaF
-- 
Martin Forssen <maf at appgate.com>              Development Manager
Phone: +46 31 7744361                         AppGate Network Security AB



!DSPAM:29,484e9da8187591919618399!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mindterm.appgate.com/pipermail/mindterm-users/attachments/20080610/d5bae315/attachment.htm


More information about the Mindterm-users mailing list