Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On my Windows development machine, I use Pageant with a secret key to authenticate with an SVN server.

I want to know: what's the equivalent Mac process for doing this? Pageant isn't ported, how do I authenticate?

share|improve this question
1  
If you want to import a key from your Windows machine with PuttyGen, then use Export -> OpenSSH to create a file in the correct format –  Casebash May 13 '11 at 2:24
add comment

4 Answers

up vote 8 down vote accepted

I use SSH Keychain on my Mac to manage my ssh key agent and attached keys. It runs ssh-agent, and ssh-add to manage the keys behind the scenes, but starts up when I login, stores the passphrase in OSX login keychain (you don't have to do this, though).

share|improve this answer
    
Note that OSX 10.5+ has ssh-agent built-in, so no additional software install is needed (the first time I accessed the encrypted private key in OSX 10.6 I was asked for passphrase; this was then "by magic" added to keychain and no more prompts since then) –  Milan Gardian May 15 '10 at 0:39
2  
blech, that link no longer leads anywhere useful :( –  bacar Sep 10 '11 at 18:18
    
this is the correct link - sshkeychain.sourceforge.net –  Aldekein Jan 29 at 10:01
add comment

For me ~/.ssh/config file works best. Add to it groups of configs using this scheme:

host shortname
user my_username
hostname host.of.the.server.example.com
IdentityFile ~/.ssh/key.openssh

and then

ssh shortname

will connect using that settings, including the key. This lets you have lots of different keys for different hosts without having to add them all to ssh-agent.

share|improve this answer
add comment

Pageant is a Windows workaround for not having OpenSSH installed. Since modern macs are UNIX, you don't have to install anything!

Here's a quick rundown on how to set it up

share|improve this answer
1  
Modern Macs are Unix ;). opengroup.org/comm/press/19-2-nov07.htm –  jtimberman Aug 31 '09 at 16:15
    
hahah. whoops. Thanks for pointing that out. –  jweede Aug 31 '09 at 16:22
    
add comment

ssh-add and ssh-agent are the equivalent tools, which are built in. Best way is to read any tutorial for linux or os x in setting up auth with ssh, it will be the same.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.