Skip to content

Instantly share code, notes, and snippets.

@peerasan
Created November 8, 2023 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peerasan/733279b2e7781333f6e248336f005a2b to your computer and use it in GitHub Desktop.
Save peerasan/733279b2e7781333f6e248336f005a2b to your computer and use it in GitHub Desktop.
add ssh key with passphrase without ask
#!/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