Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6597415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:12:22+00:00 2026-05-25T18:12:22+00:00

I am writing a JAVA program for work that at some point needs to

  • 0

I am writing a JAVA program for work that at some point needs to transfer files from the machine it is running on to another machine. The requirements are such that it can be configured to either do the transfer over FTP, SFTP, or a connection where the authentication is secure but data is transferred unencrypted.

Implementing the first two shouldn’t be too bad with third party JAVA libraries. The issue I am having is with the third option. Seems like the only way to do that is by tunneling FTP over SSH.

As I am fairly inexperienced in this matter, wondering if anyone has any helpful suggestions. This can be done using either a reliable JAVA library (preferred) or some other tool that I just call as a separate process from within the program.

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:12:22+00:00Added an answer on May 25, 2026 at 6:12 pm

    You can use Apache Commons VFS for file uploads and downloads. There is FTP and FTPS. The only prerequisite is that your remote system must run an FTP server. You do not have to call some external process. Just make your own application do the work. Remember to be careful with firewalls.

    With FTPS only the control session is guaranteed to be encrypted. The data is transfered via regular FTP. Whether it is encrypted or not is up to you. You can use the PROT and CDC commands to control encryption.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a script that calls another java program, to perform some tasks.
I am writing a java program that needs a file open dialog. The file
I am writing a program that needs to run a java.jar server. I need
I'm writing a program in Java where I read in data from an XML
I have been writing a program that watches a directory and when files are
C:\Program Files (x86)\Java\jdk1.6.0_17\bin>javac VendingMachine.java VendingMachine.java:27: error while writing VendingMachine: VendingMachine.class (Access is denied) public
I'm writing a Java program for my work-study program which relies on the RXTX
I'm writing a server program in Java that will allow users to submit jobs
I have a program that I'm writing where I am using another company's library
I'm looking to write a java program that has the following requirements: An ability

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.