Kategoriarkiv: Linux

Tunneling HP ILO5 through SSH

Creates a tunnel to the ilo port, which in this example is through the jumphost, after this you can connect to ILO by typing in https://locahost and accept the security warning, refreshing and logging in with your credentials.

Udgivet i Linux, SSH | Skriv en kommentar

Unmounting an NFS Share that has gone away

On Linux when an NFS share disappears it is not handled very well, to say it nicely, and in order to get a functioning machine again you need to drop that mount, but a simple umount command states that the … Læs resten

Udgivet i Linux | Skriv en kommentar

Fail2ban crash course

Just install fail2ban and the default settings will keep you protected just fine, after five failed login attempts the ip address of the offending login will be blocked for 10 minutes using iptables. If you wish to keep tap on … Læs resten

Udgivet i Linux, Security | Skriv en kommentar

Check TLS Certificate with openssl

Udgivet i Linux | Skriv en kommentar

Distributing SSH Keys with Ansible

This method is designed to fully take over the distribution of SSH Keys, meaning if you use this method you, or individual users, can no longer manually add their own keys to the systems. ./roles/ssh-keys/tasks/main.yml: ./roles/ssh-keys/tasks/authorized_keys And finally ./roles/ssh-keys/vars/main.yaml This … Læs resten

Udgivet i Ansible, Linux | Skriv en kommentar

Adding a secondary qemu2 disk to a kvm using virsh

First create the image: Then attach it to the virtual machine: Enter VM and format disk, you don’t need to restart.

Udgivet i KVM, Linux | Skriv en kommentar

Installing OpenZFS on Debian 11

Installing OpenZFS Install the repository management system: Enable contrib repositories: Upgrade system: Reboot system to boot with the new kernel: Ssh back in to the host, and install the needed packages: Say “OK” to imkompatability warning, and load the newly … Læs resten

Udgivet i Linux | Skriv en kommentar

Shrinking the root filesystem on a Linux machine

This was needed by me in order to run ZFS on a DigitalOcean droplet, but the process should be applicable to more or less any Linux system. 1: Boot into rescue mode Click the “Recover” link in the left vertical … Læs resten

Udgivet i Linux | Skriv en kommentar

Adding SSH Keys to CloneZilla disk-image

Create working-directory in root’s homdir: root@Voyager:~# mkdir my-clonezilla root@Voyager:~# cd my-clonezilla/ root@Voyager:~/my-clonezilla# Generate SSH Keys: root@Voyager:~/my-clonezilla# ssh-keygen -t rsa -f ./id_rsa Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been … Læs resten

Udgivet i Linux | Skriv en kommentar

Screenshot script for Ubuntu 18.04

This script will take a screenshot, upload it to a server and copy the URL into your clipboard and finaly play a sound to tell you that it’s done, first install xclip: apt-get install xclip Create screenshot.sh #!/bin/bash filename=’Screenshot_from_’`date +%Y-%m-%d_%H-%M-%S`’.png’ … Læs resten

Udgivet i Linux, Workstation | Skriv en kommentar