Howto make a ssh connection?

M

Marcelo

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
 
J

jonck

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
 
J

jonck

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

Marcelo

jonck said:
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

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

Marcelo
 
M

Marcelo

jonck said:
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
Just for information,

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

thanks

Marcelo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top