Changing the hostname in AlmaLinux

Change hostname on AlmaLinux

The hostname of a Linux system is important because it’s used to identify the device on a network. The hostname is also shown in other prominent places, such as in the terminal prompt. This gives you a constant reminder of which system you’re working with. It’s a real life saver when you’re managing multiple systems through SSH and those command line terminals start to blend together in your mind.

Of course, IP addresses are used when devices need to communicate with each other, but those can change frequently. Hostnames give us a way to know which device we’re interacting with either on the network or physically, without remembering a bunch of numbers that are subject to change. Thus, it’s important that your system bears a hostname which helps you to identify it quickly. For example, “backup-server” is much more informative than “server2.” If you can’t easily identify a system’s purpose from the hostname, it’s time to change it.

In this guide, we’ll show you how to change the hostname on AlmaLinux. This can be especially useful if you’ve recently migrated from CentOS to AlmaLinux and need to update the hostname accordingly. Changing the hostname can be done either by command line or GUI, and we’ll show you the steps for both methods below.

In this tutorial you will learn:

  • How to change the AlmaLinux hostname from command line
  • How to change the AlmaLinux hostname from GNOME GUI
Changing the hostname in AlmaLinux

Changing the hostname in AlmaLinux

Read more

How to create incremental backups using rsync on Linux

How to create incremental backups using rsync on Linux

In previous articles, we already talked about how we can perform local and remote backups using rsync and how to setup the rsync daemon. In this tutorial we will learn a very useful technique we can use to perform incremental backups, and schedule them using the good old cron.

In this tutorial you will learn:

  • The difference between hard and symbolic links
  • What is an incremental backup
  • How the rsync –link-dest option works
  • How to create incremental backups using rsync
  • How to schedule backups using cron

Read more

openssh-logo

Most common custom SSH Configurations of the OpenSSH Server

The Openssh set of utilities let us create secure, encrypted connections between machines. In this tutorial we will take a look at some of the most useful options we can use to change the behavior of sshd, the Openssh daemon in order to make your Linux system administration job easier.

In this article we assume the existence of an already running and accessible server. If you want to know more about Openssh installation, you can take a look at this article on how to install SSH server on Ubuntu Linux.

In this tutorial you will learn:

  • How to customize the behavior of the sshd daemon by manipulating options in the main ssh config file /etc/ssh/sshd_config
  • How to change the default port(s) used by the server
  • How to change the address the server listens to
  • How to change the maximum SSH login time
  • How to allow or deny login as root
  • How to change the max login attempts and maximum number of session opened
  • How to display a message when user tries to authenticate to the server
  • How to Enable/Disable password and pubkey authentication
  • How to Enable/Disable HostBasedAuthentication
  • Enabling/Disabling X11 Forwarding

Read more

dropbear-banner

How to install and configure Dropbear on Linux

The dropbear suite provides both an ssh server and a client application (dbclient), and represents a light alternative to OpenSSH. Since it has a small footprint and uses system resources very well, it is generally used on embed devices, with limited memory and processing power (e.g routers or embed devices), where optimization is a key factor. It provides a lot features, like, for example, X11 forwarding, and it is fully compatible with the OpenSSH public key authentication. In this tutorial we will see how to install it and configure it on Linux.

In this tutorial you will learn:

  • How to install and configure dropbear on linux
  • How to use the dropbearkey, dropbearconvert and dbclient utilities

Read more

Install ssh on Ubuntu 18.04

Enable SSH on Ubuntu 18.04 Bionic Beaver Linux

Objective

The below guide will provide you with information on how to enable ssh on Ubuntu 18.04 Linux. SSH stands for secure shell which allows encrypted remote login connections between client and server over insecure network.

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver
  • Software: – OpenSSH 7.5 or higher

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Conventions

Read more

SSH Server on Ubuntu 20.04 Focal Fossa Linux

Enable SSH on Ubuntu 20.04 Focal Fossa Linux

The below guide will provide you with information on how to enable ssh on Ubuntu 20.04 Focal Fossa Server or Desktop Linux. SSH stands for secure shell which allows encrypted remote login connections between client and server over an unsecure network.

In this tutorial you will learn:

  • How to install SSH daemon
  • How to enable SSH daemon to start after reboot
  • How to start SSH daemon server
  • How to open firewall SSH port 22
  • How to allow root login to SSH server

Read more

Active SSH service and firewall SSH port 22 open on RHEL 8

RHEL 8 / CentOS 8 enable ssh service

The following article will explain how to install and start SSH service on RHEL 8 / CentOS 8 system. SSH is a client-server service providing secure encrypted connections over the network connection.

In this tutorial you will learn:

  • How to Install SSH service.
  • How to start SSH service.
  • How to enable SSH to start after reboot.
  • How to open SSH port 22 for incoming traffic.

Read more

Active SSH Server Daemon on RHEL 8 Linux server/workstation.

Install ssh server on CentOS 8 / RHEL 8

The SSH server might already be installed on your RHEL 8 / CentOS 8 system. You can check the status of your SSH server using the systemctl status sshd command. We will then install the openssh-server package below by using the dnf command.

In this tutorial you will learn:

  • How to install SSH server onRHEL 8 / CentOS 8.
  • How to open SSH firewall port 22 on RHEL 8 / CentOS 8.
  • How to enable SSH to start after reboot on RHEL 8 / CentOS 8.

Read more