M3 MacBook Airちゃんむっちゃ電池保つ感じでログインしたままにしてみたんだけどssh-agentが私有鍵を何日間か忘れないでいてくれたのちょっと怖いね
ssh-agentの起動元を知りたいんだけどmacOSのpsナンモワカラン
man ssh_configより.ssh/configの変更で行けそうね
> AddKeysToAgent
>
> Specifies whether keys should be automatically added to a running ssh-agent(1). If this option is set to yes and a key is loaded from a file, the key and its passphrase are added to the agent with the default lifetime, as if by ssh-add(1). If this option is set to ask, ssh(1) will require confirmation using the SSH_ASKPASS program before adding a key (see ssh-add(1) for de‐ tails). If this option is set to confirm, each use of the key must be confirmed, as if the -c option was specified to ssh-add(1). If this option is set to no, no keys are added to the agent. Alternately, this option may be specified as a time interval using the format described in the TIME FORMATS section of sshd_config(5) to specify the key's lifetime in ssh-agent(1), after which it will automatically be removed. The argument must be no (the default), yes, confirm (optionally followed by a time interval), ask or a time interval.
TIME FORMATS節は見つけられなかったけど~/.ssh/configを下記のようにしてみました。
AddKeysToAgent 1d
忘れなかったら明日忘れてるか確認する←
@zundan ダジャレを検出しました(検出ワード: ASK, SSH, TIME, FORMAT)