Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/id_rsa git macos ssh ssh-keys # Start agent on demand eval $(ssh-agent) # Add default key ssh-add # List keys ssh-add -l # Add specific key ssh-add ~/.ssh/id_rsa # Add with timeout ssh-add -t 3600 ~/.ssh/id_rsa # Drop. Din pacate, aceasta comanda nu mai functioneaza, iar “ssh-add -K” nu mai are nici o valoare pe macOS Sierra.
Pana la lansarea macOS Sierra, SSH keys erau retinute in keychain, fiind necesara simpla comanda de autentificare SSH/SFTP la serverele ale caror keys au fost salvate.