I have my ssh rc (
~/.ssh/rc)on a remote machine setup to start
ssh-add any public keys present. When I try and
scp to this machine, it will attempt to prompt for the pass keys, then the
scp will fail and exit.
Ideally, I would like the
ssh-add to only occur for interactive ssh sessions. Is there a way in the ssh rc to determine whether the session is interactive and selectively run (or not run) certain commands in response?