回答:
sshキーをキャッシュするプログラムはssh-agentプログラムです。manページを見ると、このreliventオプションを確認できます。
-t life Set a default value for the maximum lifetime of identities added
to the agent. The lifetime may be specified in seconds or in a
time format specified in sshd_config(5). A lifetime specified
for an identity with ssh-add(1) overrides this value. Without
this option the default maximum lifetime is forever.
起動プログラムでssh-agentプログラムを編集できます。に移動しSystem > Preferences > Startup Programs
、を探して、コマンドにSSH Key Agent
追加-t 3600
します。これにより、キーは1時間で期限切れになります。
セッションを有効にするには、セッションを再起動(ログアウトしてから再度ログイン)する必要があります。gpgパスフレーズの入力にうんざりした場合に備えて、同じ方法で起動できる(ただし、デフォルトではインストールされない)エージェントプログラムでも設定できるgpgキーに対して同様のことを行うことができます。パッケージの構築またはメール送信。
そのためのcronジョブを追加できます。