PDA

View Full Version : JSP that does ssh connection to a remote unix box



ajk
11-27-2006, 06:03 PM
Does anyone have any idea or functional code sample where:
JSP that does ssh connection to a remote unix box and runs a shell script.

I tried using jsch classes and get Session can not be resolved to a type and jsch can not be resolved errors. I added jar file to every path I know of.

I've tried RunTime.exec successfully to my PC but seem not to get the remote UNIX connection syntax right.

Doesn't help that I'm learning by example either. Most qoogle result code examples are totally buged out.

Old MF cobol guy.

codeexploiter
11-28-2006, 04:00 AM
Found this one (http://www.mlug.missouri.edu/~rjudd/java/notes.html) not exactly matches but it does the SSH connection