Added ssh-agent scripts.
Moved set-scheme script to use same synthax as others.
This commit is contained in:
parent
a411154407
commit
9d6446520b
12
bin/executable_find-agent.sh
Executable file
12
bin/executable_find-agent.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Add keys to ssh-agent
|
||||
# TODO: make keys configurable
|
||||
#
|
||||
|
||||
SSH_AUTH_SOCK=$(find /tmp/ -name 'agent*' -printf "%T@ %Tc %p\n" | sort -n | tail -1 | awk '{print $7}')
|
||||
echo -e "$SSH_AUTH_SOCK"
|
||||
export SSH_AUTH_SOCK
|
||||
ssh-add ~/.ssh/daimler_rsa
|
||||
ssh-add ~/.ssh/id_materna
|
||||
|
||||
9
bin/executable_start-agent.sh
Executable file
9
bin/executable_start-agent.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
SSHAGENT=/usr/bin/ssh-agent
|
||||
SSHAGENTARGS="-s"
|
||||
if [ -z "$SSH_AUTH_SOCK" ] && [ -x "$SSHAGENT" ]; then
|
||||
eval `$SSHAGENT $SSHAGENTARGS`
|
||||
# trap "kill $SSH_AGENT_PID" 0
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user