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 / October 2005

Tip: Looking for answers? Try searching our database.

Howto make a ssh connection?

Thread view: 
Marcelo - 03 Oct 2005 14:12 GMT
Hi,

I would like to know if it is possible to do a ssh connection with Java?
Can I do it with a the class Runtime?

thanks very much,

Marcelo
jonck - 03 Oct 2005 14:50 GMT
Certainly, this is in the standard API. One thing I do see a lot of
questions on however, is how to set up a SSH connection without host
key verification (for when you are using a home-brewed certificate). I
never really dabbled with this, but from the reactions it seems that
there is no "easy" solution for this using the standard API.

There is an open-source package called j2ssh that does provide this
functionality, it can be downloaded here:
http://sourceforge.net/projects/sshtools
This page states that the package is in the alpha/beta stadium, but the
j2ssh package seems quite mature to me, I've used it without problems
for many projects.

Kind regards, Jonck
Jeff Schwab - 03 Oct 2005 15:11 GMT
Marcelo wrote:

> I would like to know if it is possible to do a ssh
> connection with Java?  Can I do it with a the class Runtime?

> Certainly, this is in the standard API.

Where?
jonck - 03 Oct 2005 16:38 GMT
> Where?

Good question :-)  Seriously, I was mistaking it turns out. I thought I
remembered there was an SSH implementation in javax.net but it turns
out I was confusing this with the SSL implementation that is there. My
apologies.
Marcelo - 03 Oct 2005 17:00 GMT
> Certainly, this is in the standard API. One thing I do see a lot of
> questions on however, is how to set up a SSH connection without host
[quoted text clipped - 10 lines]
>
> Kind regards, Jonck

It seems that this is what I am looking for,
thank you very much.

Marcelo
Marcelo - 04 Oct 2005 10:07 GMT
> Certainly, this is in the standard API. One thing I do see a lot of
> questions on however, is how to set up a SSH connection without host
[quoted text clipped - 10 lines]
>
> Kind regards, Jonck

Just for information,

is J2SSH completely free ? and is it possible to use it for a commercial
project?

thanks

Marcelo
jonck - 04 Oct 2005 16:15 GMT
> is J2SSH completely free ? and is it possible to use it for a commercial
> project?

It's covered by LGPL, so yes, you can use it in your commercial project
for free. For a clear description of what the GPL and LGPL licenses
mean, see:
http://mindprod.com/jgloss/gpl.html
Roedy Green - 03 Oct 2005 17:34 GMT
>I would like to know if it is possible to do a ssh connection with Java?
>Can I do it with a the class Runtime?

see http://mindprod.com/jgloss/ssh.html

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



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



©2008 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.