cli

Login to your server as root. As the root user, edit the sshd_config file found in /etc/ssh/sshd_config: vi /etc/ssh/sshd_config Add the following line to the file, you can add it anywhere but it’s good practice to find the block about authentication and add it there. PermitRootLogin yes Save and exit the file. Restart the SSH server: systemctl restart sshd or service sshd restart  ...

Read More
linux

What is a LAMP Stack? A LAMP (Linux, Apache, MySQL, PHP) stack is a common, free, and open-source web stack used for hosting web content in a Linux environment. Many consider it the platform of choice on which to develop and deploy high-performance web apps. Before You Begin Update your system: sudo apt update && sudo apt upgrade Install Using Tasksel Instead of installing Apache, MySQL, and PHP separately, Tasksel...

Read More
letsencrypt

OPTIONAL - Install software-properties-common # apt-get install software-properties-common Step 1 — Download the Let’s Encrypt Client # sudo add-apt-repository ppa:certbot/certbot # apt-get update # apt-get install python-certbot-apache Step 2 — Set Up the Certificates Generating the first SSL certificate # sudo certbot --apache -d skayal.com   Generating the second SSL certificate # sudo certbot --apache -d test.com -d www.test.com Step 3 — Set Up Auto-Renewal # sudo crontab -e Add 15 3 * * * /usr/bin/certbot renew --quiet Verify status...

Read More
cli

$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/Users/soumitrakayal/.ssh/id_rsa): /Users/soumitrakayal/.ssh/id_rsa already exists. Overwrite (y/n)? Y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /Users/soumitrakayal/.ssh/id_rsa. Your public key has been saved in /Users/soumitrakayal/.ssh/id_rsa.pub. The key fingerprint is: SHA256:vjEspXxl177C1ksL2Q3iKmnKl6/WtAJnYkEuxSsddtA soumitrakayal@CodeDevX.int.hslc.org The key's randomart image is: +---[RSA 2048]----+ | ..o | | * E | | * + | | o = . | | o .S o...

Read More