Results 1 to 3 of 3

Thread: How to create an SFTP Server using Linux CentOS?

  1. #1

    Default How to create an SFTP Server using Linux CentOS?

    Hello folks,

    How to create an SFTP Server using Linux CentOS?

  2. #2
    Join Date
    Feb 2020
    Posts
    1,103

    Default

    Step 1: Create a dedicated sFTP group and a dedicated sFTP user. groupadd sftpusers useradd -g sftpusers -s /sbin/nologin user1 passwd user1.
    Step 2: Modify the configuration of the sshd service.
    Step 3: Create a dedicated directory for the sFTP-only user.
    Step 4: Create more sFTP-only users.

  3. #3
    Join Date
    Jan 2021
    Posts
    13

    Default

    Step 1. Create a new group named sftp_fosslinux as following:
    sudo addgroup sftp_fosslinux

    Step 2. Create a new user named “sftpfossuser” and add it to the previously created group.
    sudo useradd -m sftpfossuser -g sftp_fosslinux

    Step 3. Add a password to the new SFTP user.
    sudo passwd sftpfossuser

    Step 4. Now, grant the new SFTP user complete access to their new home directory as follows:
    sudo chmod 700 /home/sftpfossuser/
    you need to install ssh for sftp
    sudo apt install ssh

    sudo vi /etc/ssh/sshd_config

    Match group sftp_fosslinux
    ChrootDirectory /home
    X11Forwarding no
    AllowTcpForwarding no
    ForceCommand internal-sftp

    sudo systemctl restart ssh
    login to sftp

    sftp sftpfossuser@ipaddress

Similar Threads

  1. Linux/Windows Centos, Ubuntu, Debian SSD VPS Server Hosting with RDP Full Root Access
    By Gustavo in forum Web Hosting and Related Offers Forum
    Replies: 0
    Last Post: 10-16-2016, 07:02 AM
  2. Linux VPS Hosting by SOLVPS® - Ubuntu, CentOS, FreeBSD - Instant Setup from $4.98
    By Gaiacom_LC in forum Web Hosting and Related Offers Forum
    Replies: 0
    Last Post: 04-29-2015, 01:18 AM
  3. How to Install PPTP VPN on CentOS Server (Linux)
    By Gaiacom_LC in forum Web Hosting Solutions
    Replies: 1
    Last Post: 04-18-2014, 02:58 AM
  4. Linux VPS Hosting - CentOS, Ubuntu, or Debian|Fast & Stable Servers - Jumpline!
    By Jumpline in forum Web Hosting and Related Offers Forum
    Replies: 0
    Last Post: 03-07-2014, 10:00 AM
  5. Centos Dedicated Server
    By host in forum Web Hosting Community
    Replies: 0
    Last Post: 02-05-2013, 09:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •