ABHIONLINUX
Site useful for linux administration and web hosting

2009/08/16

FTP

To create a self-signed certificate, you can use the following commands :

mkdir -p /etc/ssl/private

openssl req -x509 -nodes -newkey rsa:1024 -keyout \
/etc/ssl/private/pure-ftpd.pem \
-out /etc/ssl/private/pure-ftpd.pem

chmod 600 /etc/ssl/private/*.pem

2 comments:

  1. How to enable resume in ftp

    AllowRetrieveRestart on
    AllowOverwrite on
    AllowStoreRestart on

    ReplyDelete
  2. Setting Up Secure FTP server
    ----------------------------

    Your ftp directory should be in /home/ftp.

    Make sure that the user ftp has /bin/false for shell.

    While in the /home directory logged in as root do the following.

    chmod 555 ftp
    chmod 111 ftp/etc
    chmod 111 ftp/bin
    chmod 111 ftp/bin/*
    chmod 444 ftp/etc/*
    chmod 555 ftp/pub
    chmod 555 ftp/usr
    chmod 555 ftp/lib
    chmod 1733 ftp/incoming
    touch ftp/.rhosts
    touch ftp/.forward
    chmod 400 ftp/.rhosts
    chmod 400 ftp/.forward

    ReplyDelete