Merge pull request #1400 from arunvelsriram/ssh-add-all
Add helper function to add all ssh private keys to agentpull/1408/head
commit
ca2e3edb97
|
|
@ -17,3 +17,10 @@ function sshlist() {
|
||||||
|
|
||||||
awk '$1 ~ /Host$/ {for (i=2; i<=NF; i++) print $i}' ~/.ssh/config
|
awk '$1 ~ /Host$/ {for (i=2; i<=NF; i++) print $i}' ~/.ssh/config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ssh-add-all() {
|
||||||
|
about 'add all ssh private keys to agent'
|
||||||
|
group 'ssh'
|
||||||
|
|
||||||
|
grep -slR "PRIVATE" ~/.ssh | xargs ssh-add
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue