Skip to content

Instantly share code, notes, and snippets.

View gavinwy's full-sized avatar

Gavin Weifert-Yeh gavinwy

  • Santa Cruz, California.
View GitHub Profile
@gavinwy
gavinwy / howto.md
Created March 2, 2023 08:10 — forked from strarsis/howto.md
KeeAgent (for KeePass) on Bash on Windows / WSL (2)

Update (February 2022)

Side note: The latest edge build of KeeAgent plugin offers an option for creating a WSL compatible socket. This would be very handy. I already tried to use that socket, but the socket file is currently empty and ssh inside WSL 2 is unable to use it. This appears to be a very new, unreleased and unstable feature. I will follow the development of it and when it finally works (well, for me) I will update this HOWTO. But until then, please use the proven wsl-ssh-agent/npiperelay.exe approach below.

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 (proven/best approach (wsl-ssh-agent+npiperelay.exe))

  1. Install the KeeAgent plugin for [KeePass (2.x)](https://keepass.info/down
@gavinwy
gavinwy / gwy_prompt_host_color.zsh
Created August 17, 2019 06:26
WIP hostname coloring based on OS
#!/usr/bin/env zsh
# Copyright 2019 Gavin Weifert-Yeh
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
gwy_prompt_host_color() {
# Gavin Weifert-Yeh authorized_keys
# Deathy2 RSA
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAgACoZDaUvhvJgNiHCQpDjpyVXbGNlgixnBYzvBhuR8BBLpkuwA8lG6AL5Druhc9jwmDVhKr3kUzto3nvYS17q8nzPncsVZvyrE43VBgGOpnBsS0Q9CL/M9qTG+rvTEWt1/JbzkRMBDTSQQ7lYGVvVXGKuRbhaPRLgXce6b97Ji7J31E1FyaizshMyd038kSBVzWzpxAufGUcXKc5Myn9Jl1H9zWXmfLJBaNnqFV+aGH49OFN2jzZElETF6guWvSklP4rifH6hau+6Xez8dVb0of3+EcMM5YbdIHY3JFPVz83cUPKf2isYzjl2sU7b3e00i52JwQrP1xfWDhYShNGPgbc1p/20dvQHicDawUdDAfbRehLDXkHomxMQjHX1eDdpbiQdT2pxg8prkKyxtGSgpkhYkc/YDoYqcAMKC1A30+3+uvKVRrou5OowUPNsIL+AZe+FYcB7M73Ba3woQ3EMyIZ04sVAWS4aBswl7g/N6+rF7/ZzRLq5tAHSQ2H4ARvZnOUAMn0bctD8G9crVSANb9lqSgXPkBr2jCtjeMW+rDRP6P4RLhw9R1TVcRXsvWyf+QATEfPqDLIm8RQw+XPfYSM2X2GvAmkF92IajV/M8euSAMqBOJl0cFUJkDlkzjcsS2oo+LgAJkLazwSEjv+RT/k1gUuZBwm+Lk/G55KwWf6w== deathy2-2018-04-13
# Deathy2 25519 | Generated July 5, 2018
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEBATP+7iRrXq54+VoIUQKnyXZ5oOP9IPK3AmGk2tzDb DEATHY2 ed25519 2018 JULY 5
# India Golf 25519 | Generated July 15, 2018
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA

Keybase proof

I hereby claim:

  • I am gavinwy on github.
  • I am gavinwy (https://keybase.io/gavinwy) on keybase.
  • I have a public key ASBfFRJL7XXwAR_xepz0UhPK81gau4blV93lJraAsVhfqwo

To claim this, I am signing this object: