Create ftp user for centos6

log in as root

  • useradd
  • passwd username
    • password
    • password
  • visudo
    • edit
      • Defaults          requiretty
        • to
      • Defaults:username          !requiretty
    • add
      • username       ALL=NOPASSWD:     ALL

 

SFTP with winscp (with root privileged)

Add in below line [Advance … ] > Environtment > SFTP

sudo su -c /usr/libexec/openssh/sftp-server

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.