Created
April 1, 2024 10:09
-
-
Save tshipenchko/93b46e74dc8bfc24ed4bd4da97b72007 to your computer and use it in GitHub Desktop.
ssh-agent shell
This file contains 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 | |
trap 'echo "Killing ssh-agent" && eval "$(ssh-agent -k)"' EXIT | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_ed25519 | |
echo "Shell activated" | |
bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment