Skip to content

Instantly share code, notes, and snippets.

View marcosyonaware's full-sized avatar

Marcos Yonamine marcosyonaware

View GitHub Profile
@marcosyonaware
marcosyonaware / ssh-tunnel-with-key-from-bitwarden.sh
Created September 14, 2022 13:32 — forked from adrienjoly/ssh-tunnel-with-key-from-bitwarden.sh
Quick tunnel connection using ssh password stored in bitwarden
#!/bin/bash
set -e
BITWARDEN_ENTRY_ID="TODO" # à remplir depuis `$ bw list items --search name_of_my_entry`
echo "🔒 getting ssh password from bitwarden"
bw get password ${BITWARDEN_ENTRY_ID} | pbcopy
echo "🔑 ssh password can be pasted for 10 seconds, from now"
(sleep 10; echo "🧹 clearing password"; echo -n '' | pbcopy)&
### Keybase proof
I hereby claim:
* I am marcosyonaware on github.
* I am myonaware (https://keybase.io/myonaware) on keybase.
* I have a public key ASCXQf-bkseBzYV3L4EBqS8BtIUstyo-HVoT3V1-gtBSvwo
To claim this, I am signing this object: