Displaying 1 result from an estimated 1 matches for "start_agent".
Did you mean:
restart_agent
2014 Mar 02
1
ssh-askpass in bash script
...f1=$d/known_hosts_tmp
cat /dev/null > $f1
while read host line; do
if [ $host != "localhost" ]; then
echo $host $line >> $f1
fi
done < $f0
mv $f1 $f0
chmod 644 $f0
}
# Initialize new agent and add authentication
function start_agent {
echo "Initialising new SSH agent on $HOSTNAME on $(date)" >> ~/agent
# Start authenticating daemon
# No authentications set up yet, just starting daemon!
ssh-agent | head -2 > ${SSH_ENV}
chmod 600 ${SSH_ENV}
# Find SSH_AUTH_SOCK and SSH_AGENT_PID of...