Posts

Secure your OpenSSH Server

Image
Alright, here's how you can secure your OpenSSH server using the sshd_config file: Open the SSH configuration file using a text editor like vim or nano: sudo vim /etc/ssh/sshd_config Find the line that says PermitRootLogin yes and change it to PermitRootLogin no. This will prevent root from logging in directly to your server. Find the line that says PasswordAuthentication yes and change it to PasswordAuthentication no. This will disable password-based authentication. Add a line that says UsePAM no. This will disable PAM (Pluggable Authentication Modules), which allows users to authenticate using various methods, including passwords. Find the line that says GatewayPorts yes and change it to GatewayPorts no. This will prevent incoming connections from being forwarded through your SSH server. Add a line that says X11Forwarding no. This will disable X11 forwarding, which can be used by attackers to gain access to your X11 session. Add a line that says AllowAgentForwarding no. This will...

Install of Portainer with Podman instead of Docker on OpenSUSE

Image
Portainer can be configured to use Podman instead of Docker.  Assumed that I have already get podman and cockpit-podman manage on cockpit. First Method: Portainer with Podman on OpenSUSE host system Install Podman : Install Podman on your system if it is not already installed by running the following command: sudo zypper install po dman Install Portainer: Install Portainer by running the following command: sudo zypper install portainer Edit the Portainer Configuration File sudo nano /etc/portainer/config.yml : Edit the Portainer configuration file to tell Portainer to use Podman instead of Docker. You can do this by adding the following lines to the file: defaultEngine: 'podman' podmanExecutable: '/usr/bin/podman' Restart Portainer: Restart the Portainer service by running the following command: systemctl restart portainer Access Portainer: Access Portainer by opening a web browser and going to the following URL: http://localhost:9000 Second Method: Portainer on Po...

How to install get both ovirt and Virt-manager on Cockpit Dashboard

Image
oVirt is an open-source virtualization management platform that can be used to manage virtual machines, storage, and networks. In this tutorial, we will go through the steps to install oVirt on OpenSUSE. Prerequisites Before we start, make sure that you have the following prerequisites: OpenSUSE Latest  installed on your system A user with sudo privileges Installation $ sudo su - $ zypper ar https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/ epel $ zypper install libvirtd firewalld python-devel libgudev-devel libnl3-devel libvirt-devel qemu-kvm-tools ovirt-engine-generic-stable-kvm qemu-tools $ firewall-cmd --zone=public --add-service=http $ systemctl enable libvirtd.service $ systemctl start libvirtd.service $ /usr/bin/engine-setup $ /usr/bin/engine-setup --console-mode=console $ /usr/bin/engine-configure-user.sh $ zypper refresh $ zypper install cockpit-ovirt Once you've installed cockpit-ovirt, you can access it through the Cockpit web interface at http://localhost:...