zsh-users
 help / color / mirror / code / Atom feed
* A few lines in .zshenv (re ssh-agent) disable scp and rsync?
@ 2011-06-27  6:27 rj
  2011-06-27  7:36 ` Benjamin R. Haskell
  0 siblings, 1 reply; 4+ messages in thread
From: rj @ 2011-06-27  6:27 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]



How might I resolve the fact that the presence of these lines at the bottom
of my .zshenv on a (NetBSD) ISP account


#--------------------------------------------------------------------
# Make sure ssh-agent dies on logout:
trap '
  test -n "SSH_AGENT_PID"  && eval `ssh-agent -k`
' 0

# If no agent is running and we have a terminal, run ssh-agent and ssh-add:
if [ "$SSH_AUTH_SOCK" = "" ]
then
  eval `ssh-agent`
  /usr/bin/tty > /dev/null && ssh-add
fi
#------------------------------------------------------------------


are causing me to be unable to transfer files between that account and my
home Ubuntu box using (either from my home box or from the other side)
rsync or scp?

I need to be able to create and kill ssh-agent as per the .zshenv entry
above.  (This was some recommended stuff from, I think, the O'Reilly
book on SSH.)

But I also need to use scp and rsync to move files and do backups and so
on.

How can I make the lines above work for me without crippling my scp and rsync
functions?



[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-27 18:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-27  6:27 A few lines in .zshenv (re ssh-agent) disable scp and rsync? rj
2011-06-27  7:36 ` Benjamin R. Haskell
2011-06-27 12:51   ` Vincent Lefevre
2011-06-27 17:44   ` Russell Hoover

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).