Skip to content

Instantly share code, notes, and snippets.

View Karreg's full-sized avatar

Grégory Maitrallain Karreg

  • Orange Business Services
  • France
View GitHub Profile
@Karreg
Karreg / howto.md
Created October 14, 2021 14:32 — forked from strarsis/howto.md
KeeAgent (for KeePass) on Bash on Windows / WSL

Update (Obctober 2020)

Thanks to the instructions for WSL 2 of the wsl-ssh-agent project, KeeAgent works great in WSL 2 now: https://github.com/rupor-github/wsl-ssh-agent#wsl-2-compatibility The approach uses minimal and well maintained tools.

Installation/setup

  1. Install the KeeAgent plugin for KeePass (2.x).
  2. The OpenSSH Authentication Agent Windows service must be stopped. For being sure that it stays stopped, even after rebooting, disable the service (when it is stopped).
  3. Open the KeeAgent options via KeePass Menu -> Tools -> Options -> KeeAgent Tab. Enable the option Enable agent for Windows OpenSSH (experimental)
@Karreg
Karreg / docker-cleanup.sh
Last active October 28, 2020 07:08
Script to cleanup Docker leftovers, related to https://github.com/moby/moby/issues/22207
#!/bin/bash
echo "WARN: This will remove everything from docker: volumes, containers and images. Will you dare? [y/N] "
read choice
if [ \( "$choice" == "y" \) -o \( "$choice" == "Y" \) ]
then
sudo echo "> sudo rights [OK]"
sizea=`sudo du -sh /var/lib/docker/aufs`