Allow SSH root login
To allow SSH login as user root, edit file vi /etc/ssh/sshd_config Find PermitRootLogin no Replace with PermitRootLogin yes restart sshd. systemctl restart…
To allow SSH login as user root, edit file vi /etc/ssh/sshd_config Find PermitRootLogin no Replace with PermitRootLogin yes restart sshd. systemctl restart…
addgroup linux commanhd allow you to create a group. addgroup [options] [–gid ID] group Example root@ok:~# addgroup sokadmin Adding group `sokadmin’ (GID…
When doing PCI COMPLIANCE scan got error related to SSH Diffie-Hellman Modulus /etc/ssh/moduli Edit file vi /etc/ssh/sshd_config Add at end of the…
locate command find files on a linux server. To install locate, run On CentOS yum install mlocate On Debian/Ubuntu apt install mlocate…
ack is a tool like grep optimized for programmers. ack show the matched files name only On Debian/Ubuntu, you can install it…
Logging Linux Commands for all usersMonitor Apache site traffic with ApachetopFind IP with Most Access from Apache LogApache LogFormat show full domain…
apachetop is a command line tool like top, that shows traffic on a web site. It used apache access log to show…
On cloud servers, once you upgrade disk, you will need to resize the filesystem. On Linux ext4 file system, you can do…
Plesk use /var/www/vhosts folder to store sites. On some servers this folder will be on smaller partition. Say you have all disk…
I wanted to transfer some files between two computers, but don’t want to use all bandwidth available on the network as it…
This PHP script will redirect website visitors to HTTPS (SSL) URL. You can add this in your index.php of the website To…
To install x11vnc on Debian/Ubuntu, run apt install -y x11vnc To start vnc server, run x11vnc -display :0 By default, there will…