From: lace <> Date: Thu, 29 Jun 2006 10:56:38 +0000 (+0000) Subject: Spawn SSH agent even on remote hosts (for some foreign keys). X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=c4492a368563f8658f90d539a4a51116c267cc0a Spawn SSH agent even on remote hosts (for some foreign keys). --- diff --git a/.bashrc b/.bashrc index a761b07..1459432 100644 --- a/.bashrc +++ b/.bashrc @@ -245,7 +245,8 @@ if [ -f "$HOME/.bashrc.local" ];then source "$HOME/.bashrc.local";fi # Interactive part: for key in $HOME/.ssh/id_dsa;do [ -r "$key" ] || continue - [ -n "$SSH_TTY" ] && continue + # Do not: [ -n "$SSH_TTY" ] && continue + # as we may want foreign SSH keys too. agenteval=/tmp/.$USER.ssh-agent.eval if lockfile -1 -r 3 -l 10 -s 1 $agenteval.lock;then