search for: known_hosts_tmp

Displaying 1 result from an estimated 1 matches for "known_hosts_tmp".

2014 Mar 02
1
ssh-askpass in bash script
...th the lines on using ssh-agent and ssh-add in it: # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions SSH_ENV=$HOME/.ssh/env-$HOSTNAME function ssh_clean { d="$HOME/.ssh" f0=$d/known_hosts 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...