News for hackers. Stuff that matters.

ogsuspect

See ClashTheBunny's comment about Control sockets. You can `man 5 ssh-config` and search for the following settings 'ControlMaster', 'ControlPath', 'ControlPersist'. ControlMaster is a yes/no/auto... you probably want 'auto'. ControlPath is the path where the control socket is created. You probably want something dynamic like `ControlPath ~/.ssh/ctrl-%h`. ControlPersist specifies how long the control socket should remain open for. This enables SSH connection multiplexing.
I am a die-hard iterm + tmux user and often have many login shells open spread across many iterm windows/tabs, tmux sessions/windows/panes, etc.

I was tired of dealing with the pain of ssh-agent so I wrote some bash scripting that caches the agent environment, kills any extra uncached agents and automatically "attaches" to the cached environment so you don't have to type your ssh key passphrases in over and over.

Feel free to contribute, also feel free to talk trash :)

Re:Keyboard tricks from a macOS app dev on Monday April 24, 2023 @05:21PM (#35693443)
If you're okay with a non-open source app (App store purchase) -- "Magnet" is the way to go.

Otherwise go with whats been suggested by others

Re:Keyboard tricks from a macOS app dev on Monday April 24, 2023 @05:20PM (#35693428)
Thats because they come from GNU Readline
Re:Keyboard tricks from a macOS app dev on Monday April 24, 2023 @05:19PM (#35693414)
I had a lot higher hopes for this.

I get the impression OP is a junior dev.