11

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?

Giacomo1968
  • 58,727

5 Answers5

9

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).

Aldekein
  • 133
jtimberman
  • 21,887
4

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

jtimberman
  • 21,887
jweede
  • 6,933
4

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.

3

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.

Kornel
  • 1,365
0

This page https://docs.github.com/en/authentication/connecting-to-github-with-ssh/using-ssh-agent-forwarding has all details that worked for me. Especially,

ssh-add --apple-use-keychain YOUR-KEY
z atef
  • 99