Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: How to transfer files from FTP server to SFTP server and SFTP server to FTP server?

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 4 Times in 1 Post

    Default How to transfer files from FTP server to SFTP server and SFTP server to FTP server?

    Hello everyone,

    Can anyone please help me out...

    I can able to transfer files from my local system to FTP server(port no:21) with the help of " org.apache.commons.net.ftp " libraries.
    and also I can able to transfer files from my local system to SFTP server(port no:22) with the help of "com.jcraft.jsch.Channel " libraries .
    But, i'm unable to transfer files from " FTP server to SFTP server " and " SFTP server to FTP server "..!

    I hope you understand my Question. Please help me out...

    Thanks inAdvance.

  2. The Following 4 Users Say Thank You to pradeep_dev For This Useful Post:



  3. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: How to transfer files from FTP server to SFTP server and SFTP server to FTP server?

    Why can't the servers use the same code to transfer files as used on your local system?

    --- Update ---

    Also posted at: How to transfer files from FTP server to SFTP server and SFTP server to FTP server?
    If you don't understand my answer, don't ignore it, ask a question.

  4. The Following 4 Users Say Thank You to Norm For This Useful Post:


  5. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: How to transfer files from FTP server to SFTP server and SFTP server to FTP server?

    Please read http://www.javaprogrammingforums.com...s-posting.html

    Your question doesn't make much sense - FTP and SFTP transfer is between a client and server. If you are asking about the client using FTP and server using SFTP (or vice-versa) - they are completely different protocols.

  6. The Following 4 Users Say Thank You to copeg For This Useful Post:


  7. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: How to transfer files from FTP server to SFTP server and SFTP server to FTP server?

    This is a 4 year old thread.
    Closing.

    Open a new thread with a full description of what you are having problems with.
    If you don't understand my answer, don't ignore it, ask a question.

  8. The Following 4 Users Say Thank You to Norm For This Useful Post:


Similar Threads

  1. Simple Ftp server for uploading and downloading file
    By eku in forum What's Wrong With My Code?
    Replies: 11
    Last Post: January 25th, 2014, 12:00 PM
  2. Replies: 22
    Last Post: February 2nd, 2013, 09:16 PM
  3. Replies: 2
    Last Post: October 27th, 2011, 08:51 AM
  4. simple ftp server and ftp client
    By simontkk2005 in forum Java Networking
    Replies: 4
    Last Post: January 26th, 2011, 10:29 AM
  5. [SOLVED] Problem trying to retrieve a file from ftp server
    By alexdd1987 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: December 16th, 2010, 06:27 PM

Tags for this Thread