SSH is Restricted to One IP

optional nano /etc/ssh/sshd_config AllowUsers root@192.0.2.100 Replace 192.0.2.100 with your allowed IP. If not present, add it (replace root with your SSH user if needed).   ✅ 2. Enforce SSH Access from a Single IP A. Restrict in CSF nano /etc/csf/csf.conf Set the following: # Remove or comment out SSH port from TCP_IN TCP_IN = “…” […]

Read More

Ubuntu

Ubuntu file manager as root user sudo nautilus run Disk Usage Analyzer as root sudo baobab Irfan Anis

Read More

NFS

Setup NFS /mnt/sharedfolder clientIP(rw,sync,no_subtree_check) How to verify that the NFS server and NFS client are at version 4 at server side result: 100003 4 tcp 2049 nfs ==> Note: this indicates NFS V4 is available Irfan Anis

Read More

CyberPanel

You can use this format to run your PHP scripts /usr/local/lsws/lsphp74/bin/php /path/to/your.php Replace lsphp74 with lsphp73 or any other version you need How to Change CLI PHP on CyberPanel How to Change CLI PHP on CyberPanel? Posted April 9, 2021 Updated April 9, 2021 By Usman CyberPanel only install LiteSpeed PHPs from LiteSpeed repos. Installation […]

Read More

Debian

Set a fully qualified domain name (FQDN) hostname on your server No matter your server is a testing machine or production server, it’s strongly recommended to set a fully qualified domain name (FQDN) hostname. Enter command hostname -f to view the current hostname: On Debian/Ubuntu Linux, hostname is set in two files: /etc/hostname and /etc/hosts. […]

Read More

Linux Control Panels

01 – Installing CyberPanel – Docs / 01 – Install/Upgrade – CyberPanel Community Perfect Server Automated ISPConfig 3 Installation on Debian 10 – 11 and Ubuntu 20.04 (howtoforge.com) Irfan Anis

Read More

Disable SSH logins for root

Step 1 : ADD New user At the command prompt, type the following command. Replace username with the name of the user that you want to add: useradd username Type the following command, replacing username with the name of the user that you created in step 2: passwd username To grant administrative privileges to the […]

Read More

Linux

How to get serial number sudo hdparm -i /dev/sda | grep SerialNo nvme list (from nvme-cli module) Listing Users in Linux How to use sfdisk command to display boot partition Type the following command:# sfdisk -l# sfdisk -l /dev/sdaSample outputs: How to Find My DNS Server IP Address cat /etc/resolv.conf or grep “nameserver” /etc/resolv.conf https://apiscp.com/features/athena […]

Read More