Danh mục: Ubuntu
-
Stuck terminal when connect ssh
This is what I have in my ~/.ssh/config. To enable it for all hosts use: Host * ServerAliveInterval 240 Also make sure to run chmod 600 ~/.ssh/config, because the config file must not be world-readable.
-
SSL config
1. Có 3 file *.ca , *.crt và *.key từ vendor thì ghép file crt và ca làm 1 file dùng cho ssl_certificate file *.key dùng cho ssl_certificate_key cat *.crt *.ca > fullchain.pem Nginx config: ssl_certificate *.fullchain.pem ssl_certificate_key *.key 2. Setting 700 to .ssh and 600 to authorized_keys solved the issue. chmod 700 /root/.ssh chmod…
-
Switch php version
sudo a2dismod php7.1 sudo a2enmod php5.6 sudo update-alternatives –set php /usr/bin/php5.6
-
Cách install certbot cho ubuntu
apt install certbotapt install python3-certbot-nginxsudo certbot –nginx