Spawn SSH agent even on remote hosts (for some foreign keys).
authorlace <>
Thu, 29 Jun 2006 10:56:38 +0000 (10:56 +0000)
committerlace <>
Thu, 29 Jun 2006 10:56:38 +0000 (10:56 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index a761b07..1459432 100644 (file)
--- 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