Remove fully-qualified paths from SSH commands.
This commit is contained in:
parent
4871fe2f4a
commit
5257725a34
4
.bashrc
4
.bashrc
|
@ -89,11 +89,11 @@ SSH_ENV="$HOME/.ssh/environment"
|
||||||
|
|
||||||
function start_agent {
|
function start_agent {
|
||||||
echo -n "Initialising new SSH agent... "
|
echo -n "Initialising new SSH agent... "
|
||||||
/usr/bin/ssh-agent 2> /dev/null | sed 's/^echo/#echo/' > "${SSH_ENV}"
|
ssh-agent 2> /dev/null | sed 's/^echo/#echo/' > "${SSH_ENV}"
|
||||||
pgrep ssh-agent > /dev/null && echo "succeeded" || echo "failed"
|
pgrep ssh-agent > /dev/null && echo "succeeded" || echo "failed"
|
||||||
chmod 0600 "${SSH_ENV}"
|
chmod 0600 "${SSH_ENV}"
|
||||||
. "${SSH_ENV}" > /dev/null
|
. "${SSH_ENV}" > /dev/null
|
||||||
/usr/bin/ssh-add ~/.ssh/scott_dsa
|
ssh-add ~/.ssh/scott_dsa
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if we already have an agent running and sourced
|
# Check if we already have an agent running and sourced
|
||||||
|
|
Loading…
Reference in a new issue