File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes If I wanted to connect and read files from remote unix box using java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "If I wanted to connect and read files from remote unix box using java application" Watch "If I wanted to connect and read files from remote unix box using java application" New topic
Author

If I wanted to connect and read files from remote unix box using java application

Srini.S Shamala
Greenhorn

Joined: Dec 15, 2007
Posts: 1
Hi

I need to connect remote unix box to read the files using java class.
and by using ssh way. Please help me in this regard


Thanks&Regards<br />Srini
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
The first step will be to determine which processes on the Unix box you are allowed to use. Another good question for your Unix administrator will be the security protecting those files.

If you are lucky you will be able to use a well established process like FTP. A google search for "java ftp client" gets lots of options.

Bill
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
There is no SSH support in the native Java libraries, but plenty of packages out there. Google found this http://linuxmafia.com/ssh/java.html.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
jQuery in Action, 2nd edition
 
subject: If I wanted to connect and read files from remote unix box using java application