SSH

How to do RAM (VM) stress test

You can do stress test with stress-ng tool. To install this tool on Almalinux/RHEL: dnf install stress-ng   Then you can use this command: stress-ng –vm 1 –vm-bytes 90% –timeout 300s –verbose   This command will do a stress test on the RAM (VM) using 90% of the available RAM and will run the test […]

How to do RAM (VM) stress test Read More »

find&replace text with bash on CENTOS/RHEL

You can find and replace text on one or multiple file at once using sed RHEL command   sed -i ‘s/TEXT-TO-FIND/REPLACE-WITH/g’ filename.txt   Find and replace text on multiple files with .txt extention sed -i ‘s/TEXT-TO-FIND/REPLACE-WITH/g’ *.txt Replace TEXT-TO-FIND and REPLACE-WITH with the text you’re looking for and its replacment Example: sed -i ‘s/thursday/friday/g’ weekdays.txt The

find&replace text with bash on CENTOS/RHEL Read More »

add wp-cli to cageFS

Login to your server as root. Install wp-cli as stated here: http://wp-cli.org/#installing After installing WP-CLI Open file: /etc/cagefs/conf.d/wp.cfg using: $ nano /etc/cagefs/conf.d/wp.cfg Add the following content to that file and save. [wp] comment=wp paths=/usr/local/bin/wp And then run: $ cagefsctl –force-update Now all users who have SSH access can use wp command.

add wp-cli to cageFS Read More »

How to solve (command-line: line 0: Bad configuration option: ControlPersist) WHM transfer tool

Here is how to solve the WHM transfer tool failure error which contains: command-line: line 0: Bad configuration option: ControlPersist) To solve this error and be able to transfer websites from a remote server, apply this command: $ yum update openssh    

How to solve (command-line: line 0: Bad configuration option: ControlPersist) WHM transfer tool Read More »

change ssh port on CentOS 7

Edit /etc/ssh/sshd_config $ nano /etc/ssh/sshd_config Look for: #Port 22 Change to any port number of your choice, for example, 1234 Port 1234 (remove # from the beginning and change 22 to 1234, make sure not to use a port number that’s already used by another service like 80,21,443,53,25 etc..) 2) Add the port number to the

change ssh port on CentOS 7 Read More »