How to use Mac OS X Keychain with SSH keys?

I recognize that given that Mac OS X Leopard the Keychain has actually sustained saving SSH keys. Can a person please clarify just how this attribute is intended to function.

I have some RSA keys that I've created saved in my ~/. ssh directory site for accessing numerous web servers. I do not have actually passphrases set on those keys. Presently in order to visit to those web servers I make use of the adhering to commands in the Terminal:

eval `ssh-agent`
ssh-add ~/.ssh/some_key_rsa
ssh [email protected]

(I've created some Bash features to make this less complicated.)

Exists a far better means to do this making use of the Keychain?

157
2022-06-30 00:17:37
Source Share
Answers: 2

I believe you aren't making use of the default ssh command. Do you have ssh mounted using ports? Attempt which ssh to see which ssh command you are making use of.

Generally it needs to present a dialog box requesting for you password, if it isn't currently saved in you keychain.

6
2022-07-01 12:18:24
Source

For it to function, the $SSH_AUTH_SOCK setting variable need to be indicated /tmp/launch-xxxxxx/Listeners. This is intended to be done instantly when you visit. The audience on that particular outlet talks the ssh - representative method.

Your celebration manuscripts are beginning your very own ssh representative (led to ssh-agent, not ssh_agent) and also bypassing the existing ssh-agent that is set up for you at login.

Additionally, the entire factor of the keychain is to store the passwords to your ssh keys, yet you claim that you do not have actually passphrases set on those keys, so I'm not exactly sure what you are anticipating out of the keychain assimilation.

Ultimately, when you first visit, you possibly will not see a ssh - representative procedure. That procedure will certainly be begun instantly by launch solutions the very first time something attempts to read that outlet in /tmp.

20
2022-06-30 00:28:11
Source