Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    FTP redirect to SFTP

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      shockwavecs
      last edited by

      Is it possible to have a client type in ftp.website.com or ftp://ftp.website.com (preferably both) and it redirect them automatically to sftp://ftp.website.com? This could be coming from WAN or LAN.

      I have setup a server to chroot/jail users to a /var/jail environment. This allows secure FTP only and uses OpenSSH as an underlying protocol. The FTP service doesn't even run after running this setup. This means attempting to go to ftp://ftp.website.com simply fails. The SSH subsystem (sftp internal-sftp) takes the lead and authenticates users appropriately.

      Everything works 100% for SFTP things. I just want to ensure that users are able to successfully get to the FTP site no matter what way they try to connect.

      1 Reply Last reply Reply Quote 0
      • C Offline
        cmb
        last edited by

        Impossible. It's not like a HTTP to HTTPS forced redirect where you can tell the browser to go to the secure site, FTP has no such mechanism for redirection.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.