FTP Access

To Create the FTP access for the user


Creating the user:

adduser username

Password:

Yes

Create Key :

cd /home/created user

Mkdir .ssh

Cd .ssh

To generate key :

Ssh-keygen

Enter

Enter

Create Pub:

Cat .pub

Vim  authorized_keys

Restart ssh service

Our Base machine Convert the key file to user convenience:

Convert pub to pem and pem to ppk

Check the login
cd /opt/httpdocs/

ls -al

To Check doc root

vi /etc/apache2/sites-enabled/sanadhospital.com.conf

Join user into group

usermod -aG jtech clearpathtech
Usermod -aG groupname username

cat /etc/group

Verify the user in group

cat /etc/group | grep jtech

ls -al | grep asterhospital

chown www-data:clearpathtech asterhospital -R

cd /home/clearpathtech/

ln -s /opt/httpdocs/asterhospital .

Ls

ln -s /opt/httpdocs/sanadhospital-new/ .

Comments

Popular posts from this blog

How To Know Which Program To Use To Open An Unknown File Extension

Step By Step: Install and Configure Sensu + Grafana

Hosting a WordPress Blog with Amazon Linux