Create SFTP user and allow access to specific directory | SFTP Chroot

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024
  • Learn How to Create an SFTP User and Provide Access to a Specific Directory.
    In this video, we delve into the world of secure file transfers and guide you through the process of creating an SFTP user with restricted access to a specific directory. By implementing this method, you can enhance security and prevent potential mishaps on your web server. We begin by explaining the concept of SFTP (Secure File Transfer Protocol) and its advantages over traditional FTP. As a system administrator or developer, you may encounter scenarios where granting access to a specific directory is necessary for collaboration while safeguarding sensitive data. Follow along as we demonstrate each step, from creating the SFTP user without shell access to configuring directory permissions in the SSH configuration file. We also show you how to verify the setup using a popular SFTP client, FileZilla. Watch the video to learn how to establish secure and controlled file transfers while maintaining the integrity and confidentiality of your data. Don't forget to subscribe to our channel and hit the bell icon for more informative content. Thank you for watching, and we'll see you in our next video!

Комментарии • 21

  • @Dontever_throw_trash_out
    @Dontever_throw_trash_out 7 месяцев назад

    Bro, any idea that sftp connection is working fine, but user isn't able to place a specific file under specific folder using sftp, can u explain permissiona part of sftp folders access.
    And also inorder to access via sftp, thise filesystems should be in Mounted state right.

  • @azarel7
    @azarel7 3 месяца назад

    Great video. Is there anyway to get around the user seeing their home directory as / instead of what it actually is, which is /var/www?

  • @dibbyo456
    @dibbyo456 Год назад +1

    Thank you so much, it worked on Debian 12.

    • @PiyushGhosh-l4k
      @PiyushGhosh-l4k Год назад

      WHAT DIFF b/w this - Subsystem sftp /usr/lib/openssh/sftp-server & Subsystem sftp internal-sftp ?

    • @dibbyo456
      @dibbyo456 Год назад

      @@PiyushGhosh-l4k sftp-server is an external program that runs as a standalone process separate from the SSH server (sshd).
      internal-sftp is an internal subsystem of the OpenSSH server. It is implemented within the sshd process itself, and it doesn't rely on an external binary.

    • @Enkripsan
      @Enkripsan  8 месяцев назад

      Great ! Thanks.

  • @eliezerhilario
    @eliezerhilario 8 месяцев назад +2

    Excellent video.
    In my case it works but doesn't let me create or copy files via sftp. I'm using Ubuntu Server 22.04.
    Do you know why?
    Thank you so much.

    • @Enkripsan
      @Enkripsan  8 месяцев назад

      I think you should check the permission. You can use ACL for that directory in recursive

    • @eliezerhilario
      @eliezerhilario 8 месяцев назад

      I don't understand, but I´ll try to solve this part. Thanks so much

  • @PankajPal-o1h
    @PankajPal-o1h Год назад

    not working on wAuthentication log (see session log for details):
    Using username "pj".
    Authentication failed.inscp

  • @wfung8572
    @wfung8572 10 месяцев назад +2

    How to restrict sftp access to the specific folder only?

    • @Enkripsan
      @Enkripsan  10 месяцев назад

      Folder and directory is the same

    • @wfung8572
      @wfung8572 9 месяцев назад

      Tks. Also how to allow Sftp but disallow Ssh in Server22?

  • @thedude2242
    @thedude2242 Месяц назад +1

    Cheers Mate!

  • @TharunKumarBairaboina
    @TharunKumarBairaboina 11 месяцев назад +1

    Thank you it worked in censtos

    • @Enkripsan
      @Enkripsan  11 месяцев назад

      Most welcome. Glad to know it worked.

  • @rohitsharma-ku7vz
    @rohitsharma-ku7vz 10 месяцев назад

    How to remove read only file and directories

  • @metaphysichien
    @metaphysichien 2 дня назад

    FATAL ERROR: Connection reset by peer....

  • @astrogeeksagar
    @astrogeeksagar 3 месяца назад

    sudo service sshd restart not working

    • @QuizGalleria
      @QuizGalleria 3 месяца назад

      You can can try the following command
      sudo systemctl restart sshd