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

tmux would stuck ssh-agent (auto-login) #1122

Closed
eromoe opened this issue Oct 18, 2017 · 7 comments
Closed

tmux would stuck ssh-agent (auto-login) #1122

eromoe opened this issue Oct 18, 2017 · 7 comments

Comments

@eromoe
Copy link

eromoe commented Oct 18, 2017

$ uname -sp && tmux -V && echo $TERM
MINGW64_NT-6.1 unknown
tmux master
xterm
$ pacman -Ss tmux
msys/tmux-git 2.5.94.g73b9328c-1 [installed]
    A terminal multiplexer

Several times enter & quit tmux may cause this problem. tmux would make ssh-agent freezed(stuck or broken) . I have to kill all ssh-agent and restart tmux. Then works some time, error again.

You can see this,
tmux

gif shows:

  1. enter tmux, stuck
  2. quit, enter again, still stuck
  3. kill ssh-add not work, so kill ssh-agent

After ssh-agent killed, tmux could work with ssh-agent again, would not stuck. But severals quit & enter would happen again.

logs:
tmux-server-13592.log
tmux-client-17148.log

ssh-agent is auto-start, script by https://help.github.com/articles/working-with-ssh-key-passphrases/#auto-launching-ssh-agent-on-git-for-windows .

Doesn't see this problem when only using git-bash, msys2(not enter tmux).

In addition, ssh-agent seems would expire the passphrases after a long time, then when I start a new console(git-bash/msys2), would prompt to ask me enter passphrases. Maybe that is not by expire mechanism, because github's auto-start script not show code about this. I don't know if it is relative, just let you know.

@nicm
Copy link
Member

nicm commented Oct 18, 2017

I do not think this is anything to do with tmux.

@eromoe
Copy link
Author

eromoe commented Oct 18, 2017

Hmm... it is strange. Only severals quit & enter tmux would happen , so you mean it is by ssh-agent?

@nicm
Copy link
Member

nicm commented Oct 18, 2017 via email

@eromoe
Copy link
Author

eromoe commented Oct 18, 2017

What do you mean ending up with 2 ssh-agent ?


I come up one thing, msys has its ssh-agent, which is different from git-bash's . And the version is different too.It doesn't happen on my work PC today, may due to I update all pakcages today . My home PC is using old ssh package. I would tried that.

@nicm
Copy link
Member

nicm commented Oct 18, 2017

OK let me know if that fixes it.

@eromoe
Copy link
Author

eromoe commented Oct 19, 2017

Never happen again until now, after update ssh and .tmux.conf

PS: I also found there were some sh.exe(6 ~11) runing on background after enter tmux yesterday later . Also may by the .tmux.conf I used. What ever, it is solved now.

@eromoe eromoe closed this as completed Oct 19, 2017
@lock
Copy link

lock bot commented Feb 15, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants