ftp seems to be port 21 - can it be changed to port 22, sftp?

Discussion in 'Installation/Configuration' started by smokinjo, Feb 3, 2024.

  1. smokinjo

    smokinjo Member

    I was using the ftp account for one of the domains on our servers.
    I realized that it was was usign ftp, andnot sftp.

    Is there is a way to use , or force the use of sftp, port 22 is ISPConfig?

    Thanks

    Joseph
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    No, this makes no sense as FTP is always port 21 and that's not ISPConfig specific. SFTP and FTP are two completely different protocols and each of them has its own standard port. FTP and FTPS are FTP and handled by the FTP daemon (pure-ftpd), while SFTP is SSH, it is the SSH file transfer protocol, so it is handled by the SSH Daemon (sshd) and not the FTP daemon. If you want to use SFTP and not FTP or FTPS, then simply use SFTP, your system supports it out of the box. All you have to do is create a shell (SFTP) user in ISPConfig instead of an FTP user.
     
    Last edited: Feb 3, 2024
    ahrasis likes this.
  3. smokinjo

    smokinjo Member

    Thanks for replying even though my comprehension the names of ftp and related protocols is lacking! :(

    You mention making shell(sftp) user in ispconfig.

    I found a section called
    Shell User
    This is the right type of account?
    Once created I can use it in my ftp software and choose port 22, right? It should then tell it to use sftp, right?
    Thanks for your assistance.
    Joseph


     
  4. pyte

    pyte Well-Known Member HowtoForge Supporter

    Yes you need to create a "Shell User" in ISPConfig to use SFTP.
     
    smokinjo likes this.
  5. smokinjo

    smokinjo Member

    Thank you. I appreicate it.
     
  6. smokinjo

    smokinjo Member

    Hi again.

    I tried the sftp idea and I was able to upload files to my website account.

    Here is where they were sent:
    /var/www/clients/client1/web34(which is associated with the domain I want)

    But, when I looked at the website via the domain, nothing showed up.

    I then quetsion the directory that it is in:
    /var/www/clients/ ???

    When using ftp, it is always placed here:
    /var/www/name-of-website

    why are the files placed in different locations? Why are the not visible from the folder used for sftp, but they are from the folder the ftp uses?

    Thanks for any help.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The web folder is /var/www/clients/client1/web34/web and not /var/www/clients/client1/web34

    They are in the exact same location, so no difference between FTP and SFTP.

    /var/www/name-of-website/web and /var/www/clients/client1/web34/web is the same folder.
     
  8. smokinjo

    smokinjo Member

    Thanks for the feedback Till

    I'll check it out again

    Joseph

     

Share This Page