Force ask for ssh key passphrase
Hi everyone,
Firstly i have seen another post with a similar title that works on osx mavericks that tells you to unload a file, edit it, and then load it again.
The first command is as follows: launchctl unload /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist
but when i run this from macos sierra the file does not exist.
Looking around further i see that there is a file that looks a bit similar so i try to unload that file:
launchctl unload /System/Library/LaunchAgents/com.openssh.ssh-agent.plist
and i get: Operation not permitted while System Integrity Protection is engaged
I presume that this is a new security feature of the operating system.
Here is the other post: How to force OSX to ask for ssh key passphrase each time?
Is there any other way to force ssh to ask for a passphrase every time as i think it is very insecure to have a private key on my mac if not.
I have also tried to use ssh-add -l to show if the file is stored there but it isn't and also have looked through the keychain for anything that looked like it may be my key that has been stored.
Also when i reboot the passphrase is still not needed, so i have no idea where the mac is storing the passphrase or the decrypted key, overall quite worrying that this level of tinkering is needed.
Thanks for any help, Ben
MacBook Pro with Retina display, macOS Sierra (10.12)