Linux management

How to Install and Configure Zabbix Agent on Linux RHEL / Linux CentOS 8 VPS, VDS, Linux server

Server monitoring is one of the important things that is needed. To provide the best quality. Each monitoring system has a different approach. Depending on your infrastructure you would need to set it up independently with a back since the monitoring system can also fail. Each monitoring system requires a user to be installed on the client's device. In this case, we will show you, how you can install Zabbix Agent on a Linux Centos 8 server-based OS system. The Zabbix agent runs on client machines, collects and sends data to the Zabbix server. Therefore, all remote machines must be provided with a client for the server to work. We recently installed the Zabbix server. In this tutorial, we will walk through the necessary steps to install and configure the Zabbix agent on CentOS 8. We all know, that SELinux in most servers and VPS is enabled but y default, but we think it is…

Read time: 2 mins Read more »

How to allow root to login with ssh key

When you are managing multiple Linux servers, one of the safest and best ways to login to your server is via SSH secure key. Also, if your company has several administrators and one is leaving the company, the best way is to disable it's SSH key. Also, another benefit of the SSH key is that you don't need to remember several passwords. How to generate SSH key you can read into this how-to click here, but how to add a user with SSH key you can read here. 1. log in to your Linux server as root and go to the user folder cd /root/ 2. Create a .ssh directory in the root home directory and change its file permissions to 700. mkdir /root/.ssh ; chmod 700 /root/.ssh 3. Create the authorized_keys file in the .ssh directory, and then restrict file permissions to 600 to enforce that only the root has read or write access…

Read time: 1 min Read more »

How to create user with ssh key

Add new user accounts with remote access rights to a Linux instance. Each account can use SSH to connect to the instance from another computer or instance. The new user will be able to use SSH to connect to the instance from another computer or instance. 1. Add a new user to a Linux instance Add a new user account to an instance, where new_user is a placeholder for the new account name. This command creates an associated group, home directory, an entry in the /etc/passwd file of the instance. sudo adduser new_user Note: If you add a new user to an Ubuntu instance, include the –disabled-password option to avoid adding a password to the new account. sudo adduser new_user --disabled-password 2. Change the security context to the new user account so that the folders and files you create will have correct permissions. sudo su new_user Note: When you run the sudo su new_user command, the name at the…

Read time: 2 mins Read more »

How to generate SSH key on Linux and macOS

These days every company has several servers and they all need administration, but to remember the password for each server is a problem and also sometimes you can lose your password. At the same time you cannot put one universal password for all servers it will be insecure and put your systems at risk. Also, if your company employe leaves you will need to go and change all passwords, so it is better to use SSH key's it will not only be secure but also will be much easy if you maintain many Linux servers. This SSH key also can be used on GIT servers and other systems, that support SSH connection with a key. So let's start, open your Linux or macOS terminal. When opened copy this command and paste it in only replace e-mail with your mail If you are generating key on your macOS then 1 step login as root by opening…

Read time: 2 mins Read more »