Created
December 17, 2024 06:11
-
-
Save vodolaz095/088e7dcec3dc0a07054b67f3901217c0 to your computer and use it in GitHub Desktop.
Script for starting Network Manager VPN connection with password stored in secret-tool \ seahorse in linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
work_pwd=`secret-tool lookup user vodolaz095 domain example.org` | |
( | |
sleep 1 | |
echo "vodolaz095" | |
sleep 1 | |
echo "$work_pwd" | |
) | nmcli connection up work --ask |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
secret-tool store --label=work user vodolaz095 domain example.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment