I'm connecting to my macOS 10.15.1 device over SSH via PuTTY on a Windows computer to run a terminal program, imagesnap, that attempts to use the MacBook's camera.
When I ran the program locally on command-line on a Terminal the first time I got a permission pop-up that allowed me to give Terminal access to Camera in the Security & Privacy settings.
When I run the same program on command-line via an SSH connection the program aborts without successfully taking a photo, and I receive no permission request for Camera access.
When I look at the section Camera in the Security & Privacy settings after trying to run the program using SSH there are no entries besides Terminal, which was already given access. Terminal is shown marked as having Camera access, so it and SSH programs are separate considerations for Security & Privacy.
How do I give my SSH connection programs Camera access?