Accessing Secure Notes over SSH

Posted:
in Genius Bar edited January 2014
Hey guys, I read an article last week about accessing my apple keychain over ssh remotely. I thought, "what a great idea, no more forgetting passwords!" but I have a problem. I am a little old school and instead of having each password stored as a seperate keychain key/value combination, I have everything stored in a big secure note. Does anyone know any syntax tricks for validating with keychain and accessing a secure note (rather than a specific key?).

Comments

  • Reply 1 of 2
    chuckerchucker Posts: 5,089member
    security dump-keychain -d



    would give you your entire Keychain as plain text. I'm not positive if this includes secure notes, but I'm assuming it would.
  • Reply 2 of 2
    curufinwecurufinwe Posts: 104member
    Quote:

    Originally posted by Chucker

    security dump-keychain -d



    would give you your entire Keychain as plain text. I'm not positive if this includes secure notes, but I'm assuming it would.




    Thanks! Not really working yet, but it's a start. After your command the resulting keychain dump is a huge text file where individual items are identified by plain text strings, but still seem encrypted individually. Wasn't able to identify which block is my secure note, but it may be in there somewhere.



    I am getting some errors on the commandline and it may be that I have to allow access to the script by sitting at the keyboard and hitting "allow always" - as I've heard it still requires. I will try this from home sitting right there, waiting for an "allow" to pop up and see if what is dumped is decrypted after that step.



    Thanks again. I'll let you know if I get it working.
Sign In or Register to comment.