1

When I ssh macbook as root user and run

security find-identity -p codesigning -v`

I get

0 valid identities found

But when I run the following directly on the macbook

security find-identity -p codesigning -v

It shows all identities.

I read this SO question but still can't solve it.

how can I show all identities with ssh on macbook.

Community
  • 1
  • 1
weijia.wang
  • 2,088
  • 2
  • 18
  • 32

1 Answers1

1

I find that you should login to the remote machine with a ssh private key, just like ssh -i /path/to/your/id_rsa root@remote.com. Then you can have permission to access all security data.

Lukas Würzburger
  • 6,543
  • 7
  • 41
  • 75