Setup sftp

On cross platforms, Secure FTP allows transfer to and from server. This Tutorial Explain SFTP configuration.

User setup:

To access the server first step is to setup authenticate user.
Lets set password for www-data user

sudo passwd www-data

Sample Output:

^_^[]# sudo passwd www-data
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

Setup Login Shell :

Check Login shell for the user using grep www-data /etc/passwd

^_^[]# grep www-data /etc/passwd

When its nologin in the output we need to change the login shell

To setup login shell change /usr/sbin/nologin to /bin/bash

^_^[]# vim /etc/passwd

This completes sftp setup.

Test SFTP Setup:

SSH Testing:

ssh www-data@server-ip-address

Filezilla Testing:

Host: server-ip-address
user: www-data
pass: your-password
port: 22

Book a strategy call
with our experts

No obligation. Limited slots.

Contact Form Business Enquiry

"*" indicates required fields

Please attach any RFP, project specification, or document that you would like to share.
Drop files here or
Max. file size: 50 MB.
    This field is for validation purposes and should be left unchanged.