Better HN
topnewbestaskshowjobs
Log inSign up

ogsuspect

0 karma · joined Apr 24, 2023 (3y ago) · 6 submissions

Submissions

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

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 :)

3.

SSH-AGENT-KEEPALIVE – A bash_profile mod that cacches agent env for reuse(github.com ↗)

4 points · by ogsuspect · 3y ago · 5 comments

comment 3y ago · link · parent

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

comment 3y ago · link · parent

Thats because they come from GNU Readline

comment 3y ago · link · parent

I had a lot higher hopes for this.

I get the impression OP is a junior dev.