Hacker News new | ask | show | jobs
by asdff 2309 days ago
I would stop using tmux entirely and switch to this, but the cluster I work on has 2 factor authentication which is absolutely annoying.
1 comments

You may wish to investigate the ControlMaster directive in your SSH configuration. Depending on how the two factor authentication system works, you may be able to authenticate just once for many concurrent SSH sessions.
Here's what I use to keep SSH connections open for 4 hours: https://blag.felixhummel.de/apps/ssh.html#config

It took a while to find out that `Host *` should be at the end of the file if you want to override things.