To delete file
rm filename.txt
To delete files
rm filename1.txt filename2.php filename3.docx
To delete folder
rm foldername/
To delete all files with .html extension
rm *.html
by dev
To delete file
rm filename.txt
To delete files
rm filename1.txt filename2.php filename3.docx
To delete folder
rm foldername/
To delete all files with .html extension
rm *.html
by dev
Download and install PuTTY on your computer.
After installing putty, run PuTTYgen from start menu
You may customize Parameter at the bottom. But generally default values are appropriate.
Now click on Generate and move the mouse on blank area to complete key generation.
Save private key in save place. Noted that you may or may not use Key passphrase.
Close PuTTYgen tools.
Connect to server with Private Key
Open PuTTY
Put hostname or IP in session.
Go to Connection > SSH > Auth and browse private key.
Now you will be prompted Login as
We can do it just in two steps.
Step One:
At first we will create new root user as follows (for example, newroot)
useradd -G wheel newroot
passwd newroot
su - newroot
sudo whoami
vi /etc/ssh/sshd_config
[Permission Denied!] Quit :q
AllowUsers newroot
sudo systemctl restart sshd.service
Step Two:
Now we are going to disable the root user. Before doing this, you have to logout from “root” and then login with “newroot”.
You can only disable the “root”, if you can successfully login with “newroot”.
su - root
vi /etc/ssh/sshd_config
permitRootLogin no
sudo systemctl restart sshd.service
su - root
How to enable LetsEncrypt
https://help.directadmin.com/item.php?id=648
Automatically setup LetsEncrypt SSL for *all* domains that do not currently have a certificate
https://help.directadmin.com/item.php?id=675
Force https using an .htaccess file
https://help.directadmin.com/item.php?id=624
CSF with Brute Force Monitor (BFM) will provide extra benefit of BFM to find some extra cases which triggers the blocks using CSF.
It will use the iptables configuration, and all features of CSF, plus the added benefit of the BFM
wget http://files.directadmin.com/services/all/csf/csf_install.sh /bin/sh ./csf_install.sh