From c4492a368563f8658f90d539a4a51116c267cc0a Mon Sep 17 00:00:00 2001 From: lace <> Date: Thu, 29 Jun 2006 10:56:38 +0000 Subject: [PATCH] Spawn SSH agent even on remote hosts (for some foreign keys). --- .bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 1.8.3.1