File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Sockets and Internet Protocols
connecting to Unix Remote server using SSH
Joined: Sep 26, 2003
Aug 20, 2005 14:56:00
i have an requirement where i need to connect to the Remote server (Unx box) using SSH. Once i have logged in i need to go to the specific directory and execute a script.
I have difficulty in how to connect to Remote Host using SSh thorugh
. Basically i need the system command to do it..CAnu please help me in this thing ..
Author and all-around good cowpoke
Joined: Mar 22, 2000
Aug 23, 2005 07:00:00
I found several references to Java libraries that support SSH and SSH2 by means of a Google search. For example:
Joined: Nov 18, 2000
Aug 30, 2005 08:59:00
See the following article:
In particular you may wish to look at the Ssh/SshScript and SshSession classes found in SSH Factory which allow you to write scripted ssh sessions.
I agree. Here's the link:
subject: connecting to Unix Remote server using SSH
If I wanted to connect and read files from remote unix box using java application
Host not found using pscp
Connecting to telnet server from ssh server
How to run remote command from a JSP
Connection to registry on a remote host
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014