Accessing keychain from Terminal?

I am wondering if i can access my keychain (with saved passwords) from Terminal, and in this case, SSH?

That would be great, so if it does, i would appreciate if someone would let me know how 🙂

/karlan

alu iMac 24", Mac OS X (10.5)

Posted on May 12, 2008 10:59 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on May 13, 2008 4:07 AM

hi karlan

the shell command to access keychains is called security. There's a good man page. Also have a look at
http://blog.macromates.com/2006/keychain-access-from-shell/

hope this helps,

--greg
3 replies
Sort By: 

May 13, 2008 5:51 AM in response to madconqueror

security doesn't seem to match my criteria thou.

I need to access the keychain and read passwords from it when im SSH:ed on, and i get "User interaction is not allowed" etc.

The app needs a command-line to work properly.

Any other alternatives?

Thanks thou for the link, really usefull reading =)
Reply

May 13, 2008 6:10 AM in response to karlan

hi karlan

I'm sorry, I didn't read your question exactly. I don't know of a tool that can access the keychain via ssh directly. You would have to login a user to the console to later allow access to the keychain. Both of this can be done with osascript.

Which app needs a command-line to work properly? What do you want to do?

--greg
Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Accessing keychain from Terminal?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.