Disable root login over ssh on the server 🙂
man sshd_config
PermitRootLogin
Specifies whether root can log in using ssh(1). The argument must be ``yes'',
``without-password'', ``forced-commands-only'', or ``no''. The default is ``yes''.
Local users on the server can still su or sudo if they have credentials for that.
'man ssh-agent' also has this nugget
-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 speci-
fied for an identity with ssh-add(1) overrides this value. Without this option the default
maximum lifetime is forever.
I wonder if adding -t 0 to the args in the launchd job will set the timeout to nothing? Or maybe '-t 60' is enough to allow a slow connection to complete?
It is located in /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist you will want to unload the plist before you edit it.
sudo launchctl unload /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist
edit the file, insert …
<string>-t</string>
<string>60</string>
…into the program arguments.
sudo launchctl load /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist
Software updates may undo this, but I think it is how you achieve what you desire
@Etresoft, does his seem reasonable to you?
Let us know if it makes any difference!