Category: SSH
Pulling: Let’s say you have a terminal on your host open, you could do:
scp user@192.168.1.100:/tmp/myfile /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@192.168.1.5:/tmp/files/myfile
php -f bin/magento setup:upgrade
sudo shutdown -h now
cd /opt/letsencrypt
./letsencrypt-auto certonly -a webroot --webroot-path=/usr/share/nginx/html -d example.com -d www.example.com
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/example.com.conf /etc/nginx/sites-enabled/example.com.conf
Set Up Auto Renewal
/opt/letsencrypt/letsencrypt-auto renew