Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2003

Tip: Looking for answers? Try searching our database.

SSH Client

Thread view: 
Nuggy - 11 Nov 2003 00:44 GMT
Anyone,

I'm looking for an SSH client to imbed into my application.

I have a GUI Java app that runs on a Windows platform.  We need
connectivity to run interactive shell-based Unix scripts, but we're
doing away with Hummingbird/Exceed and going to SSH.

I need to incorporate this into my client app somehow, but I'm not
familiar enough with SSH to plod through all of the source code in
SSHTools's j2ssh and SSHTerm to be able to understand it all
(literally dozens of source files in these.. with very little
documentation that I could find).  I've got as far as creating and
authenticating to a new SSH session, but I haven't been able to
determine from these tools if there's an easy way to "run" this
session in an interactive window.

Does anyone know of any source code that will fire up an interactive
session inside its own JFrame, and requires only creating an instance
of a class and passing in vital information needed to start the
session?

I want to pass in the hostname, the username, their password (which is
stored internally from the application's own authentication), and the
command to execute.

It's possible I could get away with using a standalone Windows SSH
client that has the ability to start up with these passed-in
parameters, but I'd much rather have it part of my java code so I only
have one program to deploy and maintain.  I don't need any setup
options, menus, or anything like that... just a text window that
provides interacive input/output of an SSH session.

Thanks in advance for any ideas.

-Nuggy
Andreas Schmidt - 19 Nov 2003 03:58 GMT
Am 10 Nov 2003 16:44:42 -0800 hat Nuggy <nosenugget@excite.com>
geschrieben:

> I'm looking for an SSH client to imbed into my application.

> I need to incorporate this into my client app somehow, but I'm not
> familiar enough with SSH to plod through all of the source code in
> SSHTools's j2ssh and SSHTerm to be able to understand it all
> (literally dozens of source files in these.. with very little
> documentation that I could find).  I've got as far as creating and

Maybe "jsch" has a better documentation?
Have a look at http://www.jcraft.com/jsch/
Nuggy - 24 Nov 2003 21:29 GMT
> Am 10 Nov 2003 16:44:42 -0800 hat Nuggy <nosenugget@excite.com>
> geschrieben:
[quoted text clipped - 9 lines]
> Maybe "jsch" has a better documentation?
> Have a look at http://www.jcraft.com/jsch/

I was able to get both j2ssh and mindterm to port easily, but I was
running into display problems.  I tried jsch, and integrated it fairly
easily, but I encounter the same display problems; namely running a
script that calls an executable produces output from the script, but
not from the executable *until* the executable finishes, at which
point all output is then displayed.  It accepts input just fine.

See my post in comp.security.ssh for details.  Thanks for the
suggestion.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.