• Github: Getting the SHA256 fingerprint of an SSH key

    1 min read

    When you need to check the SSH key that you are using on your GitHub account, you'll get the SHA256 fingerprint of the key.

    Github SSH Keys

    Depending on the version of OpenSSH that you are using, the fingerprint you get from using ssh-keygen -lf might be different from the one that GitHub shows you.

    23/10/2024

    Read more...
  • git: Configuring SSH Keys per repository

    2 min read

    git ssh key ssh command GIT_SSH_COMMAND core.sshCommand

    For Git users, the Secure Shell (SSH) protocol is the go-to choice for authenticating and communicating with remote repositories. How can we configure the correct SSH key to use?

    26/10/2023

    Read more...
  • Automatically stablish a SSH tunnel to connect to k8s with kubectl

    4 min read

    Kubernetes k3s SSH tunnel

    Kubernetes is a powerful container orchestration platform used by many organizations to deploy and manage their applications. Interacting with a Kubernetes cluster requires configuring the kubeconfig file with the necessary credentials. However, managing these credentials can be challenging, especially in scenarios where a bastion host or SSH tunnel is required.

    With kubectl-tokensshtunnel we can automate the process of creating an SSH tunnel to a remote server and retrieving the Kubernetes credentials from there. This tool simplifies access to remote Kubernetes clusters by securely caching the credentials for a specified duration.

    18/05/2023

    Read more...
  • Generate public SSH key from existing private SSH key

    1 min read

    To be able to successfully connect using SSH keys we need to have the private key on the client side and the public key set on the server side (where we want to connect). If we only have the private key, we can generate a public SSH key from it

    24/12/2021

    Read more...
  • Using nmap to brute-force SSH

    2 min read

    If we have a bunch of Raspberries on our network and we want to make sure we are not using the default password on any of them, we can using nmap fo trying to brute-force into them

    15/09/2021

    Read more...

From pet to cattle
Treat your kubernetes clusters like cattle, not pets