Displaying 1 result from an estimated 1 matches for "ssh_clean".
Did you mean:
dh_clean
2014 Mar 02
1
ssh-askpass in bash script
...this
for a while and I could use some help.
Here's my bashrc file with 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
}...