blog SSH

Transfer files with SSH from one server to another

Pulling: Let’s say you have a terminal on your host open, you could do:

scp user@ /tmp/files/myfile

This way you are creating a “second tunnel” towards your server.

Pushing: (The other way around) so from your server to your host (essentially it is now a tunnel in your original tunnel):

scp /tmp/myfile user@
blog magento magento 2 SSH

php -f bin/magento setup:upgrade

php -f bin/magento setup:upgrade
blog Linux Nginx SSH ubuntu

nginx shutdown terminal ssh

sudo shutdown -h now
blog Let's Encrypt Nginx SSH SSL ubuntu

Quick Secure Nginx with Let’s Encrypt on Ubuntu 14.04

cd /opt/letsencrypt
./letsencrypt-auto certonly -a webroot --webroot-path=/usr/share/nginx/html -d -d
sudo ls -l /etc/letsencrypt/live/your_domain_name
sudo openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
sudo ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/

Set Up Auto Renewal

/opt/letsencrypt/letsencrypt-auto renew