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

Posted in FAQ | Tagged , , | Leave a comment

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

Posted in FAQ | Tagged , , | Leave a comment

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

Posted in FAQ | Tagged , , | Leave a comment