maxgoedjen / secretive

Store SSH keys in the Secure Enclave
MIT License
7.16k stars 158 forks source link

Add public key to ~/.ssh #403

Closed asmeurer closed 1 year ago

asmeurer commented 2 years ago

It's a little confusing that the public key is buried in ~/Library somewhere. Is there a reason it isn't included in ~/.ssh/, at least as a symlink?

maxgoedjen commented 2 years ago

Yeah, it's because that path is within the sandbox secretive has access to.

maxgoedjen commented 2 years ago

Nothing that would prevent you from symlinking it though, if you were so inclined.

asmeurer commented 1 year ago

If Secretive can write to ~/.ssh/config during the setup shouldn't it also be able to write a symlink there?

maxgoedjen commented 1 year ago

This is actually a little bit of sleight of hand on Secretive's part - we're given write access to that specific file if you explicitly select it from the file dialog - but we can't access ~/.ssh in general