Password Manager use keychain iCloud to sync all devices

185 views
Skip to first unread message

alon rosenfeld

unread,
Oct 31, 2021, 8:05:28 AM10/31/21
to iterm2-discuss
Hello,

Is there a way to force Password Manager to use keychain's iCloud storage instead of the local mac? I work on various Mac computers and would like to have all my ssh passwords accessible from anyone of the devices.

(in 2015 there seems to have been a feature request related to iCloud and passwords, but I'm not sure if it was ever implemented).

Cheers
Alon

Gavin Goldsmith

unread,
Oct 31, 2021, 9:13:27 AM10/31/21
to iterm2-discuss
Hi

As I understand it this is done with ssh-add. The relevant options are (from the man page):
     -K      When adding identities, each passphrase will also be stored in the user's keychain.  When removing identities with
             -d, each passphrase will be removed from it.

     -A      Add identities to the agent using any passphrase stored in the user's keychain.

I'm not using mulitple devices but the above work for me.

Regards

Gavin

alon rosenfeld

unread,
Oct 31, 2021, 11:05:41 AM10/31/21
to iterm2-discuss
Gavin, I was referring to iTerm2 Password Manager which provides a UI to create, edit and save passwords using apple's keychain as the backend. This UI saves the passwords on the local keychain and does not give an option to save it in the iCloud keychain, thus I cannot access the passwords on any other devices but the one on which created them. Does that make sense?

Gavin Goldsmith

unread,
Oct 31, 2021, 11:18:25 AM10/31/21
to iterm2-discuss

Sorry,  I thought you were referring to ssh keys. I don''t user the password manager at all. For reference, I create public+private keey pairs (ssh-keygen) and  then add then:
1) add the key to to keychain
2) put the public key on the remote host (~<username>/.ssh/authorized_keys)
3) connect the remote host with: ssh -l <username> <host>

Wherever possible I prefer keys over username+password.

Gavin
Reply all
Reply to author
Forward
0 new messages