Fix ssh ciphers and key exchange problem towards older network hardware

Cipher or key exchange error when trying ssh towards older Cisco switches and other older networking hardware.

You get an error like
Unable to negotiate with 10.1.1.2 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1

Tags: ssh sshd cisco networking Feb 12, 2023
CentOS 7/8 fail to boot after migration proxmox

When you convert a vm with redhat7 or centos7 and it failed boot with “dracut-initqueue timeout” and you want to use virtio for scsi driver.

Tags: centos rhel vmware proxmox Dec 1, 2022
git reset back to master

If you are ahead of master, to reset and save your changes.

Tags: git linux sysadmin Apr 19, 2021
How to build multistage python with venv the smart way

The smartest way to create a multistage Dockerfile for a python application and be compatible with OpenShift non-root / arbitrary user is to use virtual environments.

Tags: docker python Apr 9, 2021
Cisco time-zone for CET and CEST

To get correct time-zone for a Cisco-device in sweden, you need to set the time-zone to CET for standard-time and CEST for summer-time Summer-time in sweden starts at the last sunday of March and ends in last sunday in october.

Tags: cisco network Nov 2, 2019
Dual container pod in Kubernetes

Deploying a static and dynamic site inside k8s

Writing a deployment for a two container pod with both static and dynamic content

Tags: kubernetes devops Oct 1, 2019
P9 Fileserver for WSL

\\wsl$\[running dist] not working

Problem accessing your WSL - Windows Subsystem for Linux - linux files in Windows 10 1903. Probably a missing P9NP in Order in registry.

If you cant access \\wsl$\Ubuntu it is probably because the updater missed to activate the P9NP component.

Tags: windows wsl sysadmin Sep 26, 2019
K8s Downward Api

You can send down extra info about pod and node inside the cluster to a container.

valueFrom.fieldRef can provide extra info to a pod I use them as environment-variables to provide extra info inside our team slackbot

Tags: kubernetes devops Sep 10, 2019
K8s Slackbot

Deploying a python slack-bot in k8s

Running a slackbot in k8s for easy deployment.

This is my setup for a slackbot running in k8s. It is a working solution designed for kubernetes 1.17

Tags: devops kubernetes docker Sep 9, 2019
Using python decorators for registration

Using python decorators for registering command for a help-function in a slackbot. (with example)

This implementation uses a global var as database for the commands.

Tags: development python Sep 9, 2019