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