Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates use of SSH_AUTH_SOCK var #1658

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

3mkay
Copy link
Contributor

@3mkay 3mkay commented Apr 12, 2022

On tmux terminals, the SSH_AUTH_SOCK points at a symlink and the function to create the ssh-agent file tries to incorrectly use the home directory.

This change makes sure that the link is followed to the real file by adding readlink -f into flow each time the SSH_AUTH_SOCK variable is called.

BEFORE
echo $SSH_AUTH_SOCK --> /home/[user]/.byobu/.ssh-agent

AFTER
echo $(readlink -f $SSH_AUTH_SOCK) --> /tmp/ssh-hm7Kr86BHu/agent.1287

On tmux terminals, the SSH_AUTH_SOCK points at a symlink. This change makes sure that the link is followed to the real file.
@3mkay 3mkay marked this pull request as ready for review April 13, 2022 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant