byobu cannot connect to ssh-agent socket well. actually I can make just one connection via ssh-agent but if I try to establish another ssh connection using the agent, it doesn't work. I've tried
setenv SSH_AUTH_SOCK `echo $SSH_AUTH_SOCK`
in ~/.byobu/profile
but it didn't work as well.
I'm not sure why people attempt to solve this at the terminal multiplexer configuration level. That's not a place for it, unless you want to have to do it again because you've switched to tmux, screen, etc.
Every time you open another window, your shell gets executed and reads its configuration files.
Sourcing this from your shell configuration file solves the problem for any shell that I use:
This issue is detailed in Bug #664059, and solved for byobu versions 3.7 and above.
Basically, there is an incorrect assumption that
/var/run/screen/S-$USER/
will exist and be writable at the point at which the SSH socket needs to be set. So I moved the symlink to the SSH socket to$HOME/.byobu/.ssh-agent
.There is a bug report #616899 which sounds similar to your problem. They suggest to download byobu v3.1 and manually install it.
I've been doing
ssh-agent byobu
all the environment variables gets passed easily.