-
Recent Posts
- How to Automatically Renew LetsEncrypt Certificates and Restart Your Web Server
- How to Create an Admin User With All Privileges on MariaDB / MySQL
- How to Obtain a Let’s Encrypt SSL Certificate Using the WebRoot Plugin
- List all IPs connected to your server along with connection count
- How to restore network / internet access after replacing your NIC or Motherboard in Linux
Recent Comments
Archives
Categories
Meta
Category Archives: FAQ
How to enable or disable shell access for a Linux user account
To disable shell access use the following command (replace username with the correct values for your situation – leave out the curly brackets). chsh -s /sbin/nologin {username} or chsh – /usr/sbin/nologin {username} To grant bash access use: chsh -s /bin/bash … Continue reading
How to set SSH to run on a non-standard port
By default, the OpenSSH server runs on TCP port 22. Changing this to a non-standard port helps mitigate the risk of someone successfully gaining access via a brute force attack, especially if there are many users on the system or … Continue reading
How to Import / Export MySQL Databases via SSH / Command-line
To Export a MySQL Database run: mysqldump -u username -p database_name > dumpfile.sql To Import a MySQL Database run: mysql -u username -p database_name < dumpfile.sql