This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes file upload using SSH Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "file upload using SSH" Watch "file upload using SSH" New topic
Author

file upload using SSH

PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 183
I have s simple struts program to upload files. But the issue is my boss is worried about the security and he wanted to use ssh protocol. Anybody has any idea bout how this can be done? I appreciate the advice.
Thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
Why don't you use HTTPS for the upload? That would encrypt the file in transit, and would be very little effort, since you already have it working over HTTP.


Android appsImageJ pluginsJava web charts
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 183
That sounds good. How can I convert my program into program using https? The server we are using is Apache Tomcat. I don�t have that much Apache Tomcat experience. Can someone suggest me a good document or briefly tell me how to do this? I appreciate that very much.
Thank you.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
Tomcat comes with extensive documentation on how to SSL-enable it.
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 183
Thank you.
Richard Waldicott
Greenhorn

Joined: Jun 10, 2007
Posts: 9
if you have to use sftp/ssh you might look at the following component

http://www.jscape.com/sftp/
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 183
Thanks to everybody. I used https. It was easy since I have the program working using http. But now they want to be able to see the file when they upload it. For example if they are uploading a video, they would like to see it in the browser when they upload it. Is this possible? (Most videos are flash videos). I highly appreciate any help.
Thank you very much.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: file upload using SSH
 
Similar Threads
Implementing SSH for file upload
java api that will be use for transfering large file around 10MB to and from SFTP server.
Moving huge data from Client to Server
How I connect to remote Unix Box from standalone java application?
Config window loading very slow