Suppose we have a deploy.php script at /var/www/html/deploy.php that is called by a hook from a service such as Github or Bitbucket. We need to configure our web-server user, in this case it’s www-data, who’s default home directory is /var/www. Create .ssh directory and set permissions mkdir /var/www/.ssh chmod 0700 /var/www/.ssh chown -R www-data:www-data /var/www/.ssh […]