HNHacker News
TopNewBestAskShowJobs

ogsuspect

0 karma · joined April 24, 2023

submissionscomments
ogsuspect··on SSH-AGENT-KEEPALIVE – A bash_profile mod that cacches agent env for reuse
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.
ogsuspect··on SSH-AGENT-KEEPALIVE – A bash_profile mod that cacches agent env for reuse
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 :)

ogsuspect··on Keyboard tricks from a macOS app dev
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

ogsuspect··on Keyboard tricks from a macOS app dev
Thats because they come from GNU Readline
ogsuspect··on Keyboard tricks from a macOS app dev
I had a lot higher hopes for this.

I get the impression OP is a junior dev.