Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create protected passwordless ssh logins - Part 2 of 3 UNIX
Part 2: Implementing a keychain CLI utility

[NOTE: - this is part two of a three-part tip. Please see Part 1 for background info.]

Try as I might, I couldn't find a simple utility to access the Keychain from the command line. So I wrote one. Download it and install it somewhere on your system. Then you call it like so:

% keychain name account

It will look up the specified key of kind "application password" with the name and account given in the default keychain, and emit it to standard out.

Source code is available. If you want to compile it yourself, install the Developer Tools, then create a new project of type Tool -> CoreServices Tool. Name the project "keychain." Double-click main.c and replace it with the contents of main.c downloaded from my website. Click Build to build the project. Then command-drag the resulting executable to your desktop or wherever you'd like to place it.

    •    
  • Currently 1.80 / 5
  You rated: 2 / 5 (5 votes cast)
 
[5,803 views]  

Create protected passwordless ssh logins - Part 2 of 3 | 1 comments | Create New Account
Click here to return to the 'Create protected passwordless ssh logins - Part 2 of 3' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create protected passwordless ssh logins - Part 2 of 3
Authored by: jaysoffian on Mar 28, '06 07:31:14AM

NOTE: this utility is no longer needed. I've updated ssh-askpass (see part 3) to use an OS X command to grab the needed password.



[ Reply to This | # ]