rharder/imagesnap

Stuck in macOS Ventura when executed from SSH-session

Opened this issue · 1 comments

HW/OS:
image

imagesnap works well when executed in local terminal:

$ imagesnap -vvv
Verbose mode
No filename specified. Using snapshot.jpg
No device specified. Using FaceTime HD Camera
Capturing image from device "FaceTime HD Camera"...Starting device...Device started.
Delaying 3.00 seconds for warmup...Warmup complete.
snapshot.jpg
Stopping session...
	CaptureSession != nil
	Stopping CaptureSession...Done.
	Shutting down 'stopSession(..)'

but it gets stuck when executed within an ssh-session (log in to this Macbook via ssh):

$ imagesnap -vvv
Verbose mode
No filename specified. Using snapshot.jpg
No device specified. Using FaceTime HD Camera
Capturing image from device "FaceTime HD Camera"...Starting device...Device started.
Delaying 3.00 seconds for warmup...Warmup complete.

It's related to camera access permission.

iTerm2

image

SSH

image

image

if sshd-keygen-wrapper is not here, you cannot access camera via ssh.