Displaying 1 result from an estimated 1 matches for "ssh_env".
2014 Mar 02
1
ssh-askpass in bash script
...little annoying. I've been dealing with 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 &l...