FeaturesWP CloudPricingEE CLIContactMy Account

Features

Team Access & User Permissions

Server Setup & Management

Site Creation & Management

Deployments & Developer Tools

Firewall Protection

Speed & Caching

Backups & Recovery

Logs & Monitoring

Create WP Cloud Sites

All Features

Read Documentation

Install

Installation Guide

FAQ

Roadmap

Explore EE CLI

Resources

Commands

Handbook

Blog

Community

Forum

EasyExperts

Tutorials

Subscribe

Github

CLEAR

Start For Free

separator Tutorials separator Linux separator Setup sftp

Topics

On this page

User setup:

Setup Login Shell :

Test SFTP Setup:

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:


			^_^[root@example.com:~]# 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


			^_^[root@example.com:~]# grep www-data /etc/passwd
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
		

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

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


			^_^[root@example.com:~]# vim /etc/passwd
www-data:x:33:33:www-data:/var/www:/bin/bash
		

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
		

search replace in multiple files useing grep xargs sed

PREVIOUS

sysctl.conf

NEXT


Features

Useful Links

Product

Other Products

Subscribe for curated product updates, tips, and announcements.

"*" indicates required fields

Email

This field is for validation purposes and should be left unchanged.

Email*

SIGN ME UP

Δ


© rtCamp, since 2009. All rights reserved.

Powered by