Created
November 8, 2023 09:35
-
-
Save peerasan/733279b2e7781333f6e248336f005a2b to your computer and use it in GitHub Desktop.
add ssh key with passphrase without ask
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
#!/bin/bash | |
eval `ssh-agent -s` | |
{ sleep .1; echo PASSPHRASE } | script -q /dev/null -c 'ssh-add' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment