Answer by chAlexey for macOS Sierra doesn’t seem to remember SSH keys between...
There is a similar question answered in this thread on Askubuntu. I found a great solution for that by adding a plugin for oh-my-zsh shell that I switched to from bash.
View ArticleAnswer by Matthias Bohlen for macOS Sierra doesn’t seem to remember SSH keys...
I updated to Mac OS X Sierra (10.12.6). I could ssh into other hosts but not into github.com.This is what I had to insert into ~/.ssh/config:PubkeyAcceptedKeyTypes ssh-dss,ssh-rsaAfter that change, I...
View ArticleAnswer by n1000 for macOS Sierra doesn’t seem to remember SSH keys between...
If you are using a different version of ssh (e.g. installed via homebrew) the above solutions will not work out of the box. For instance, AddKeysToAgent yes and UseKeychain yes in the .ssh/config file...
View ArticleAnswer by Ricardo Sanchez-Saez for macOS Sierra doesn’t seem to remember SSH...
As explained here, this is the recommended method since macOS 10.12.2:Add the following lines to your ~/.ssh/config file:Host * UseKeychain yes AddKeysToAgent yesAny key you add to the ssh-agent using...
View ArticleAnswer by chim for macOS Sierra doesn’t seem to remember SSH keys between...
Amending ~/.ssh/config to add UseKeyChain for all hosts is enough to stop this recurring nightmare ;)Host * UseKeychain yesIf the file is empty or doesn't exist simple create and/or add the above...
View ArticleAnswer by Ben for macOS Sierra doesn’t seem to remember SSH keys between reboots
Since macOS 10.12.2 you can use the UseKeychain option. Read more here or look into man ssh_config. UseKeychain On macOS, specifies whether the system should search for passphrases in the user's...
View ArticleAnswer by mluisbrown for macOS Sierra doesn’t seem to remember SSH keys...
As of macOS Sierra 10.12.2 Apple added an ssh_config option called UseKeychain which allows a 'proper' resolution to the problem. Add the following to your ~/.ssh/config file:Host * AddKeysToAgent yes...
View ArticleAnswer by Infinity for macOS Sierra doesn’t seem to remember SSH keys between...
I had this problem before and I've found a way to bypass this. I just created a file named config in my ~/.ssh folder, where I've added the following lines:Host github.comHostName...
View ArticleAnswer by Fiskabollen for macOS Sierra doesn’t seem to remember SSH keys...
I found that ssh-add -K gave me "illegal option -- K".This was because ssh-add was a strange version coming from /usr/local/bin (installed by brew?). I was able to add the key by specific use of the...
View ArticleAnswer by Jirsbek for macOS Sierra doesn’t seem to remember SSH keys between...
I've written a short post about this topic that might help you.A solution is calling ssh-add -A command on every startup.Just add .plist file with the following content to the path...
View ArticleAnswer by Giacomo1968 for macOS Sierra doesn’t seem to remember SSH keys...
I had this issue as well when attempting to deploy some code using Capistrano. Very frustrating. Here are two methods I know of to deal with this issue.Method 1: Add all known keys to the SSH agent.So...
View ArticlemacOS Sierra doesn’t seem to remember SSH keys between reboots
I have to run this command since upgrading to macOS:ssh-add -KCorrects the problem after the reboot but I have to run this command every time I log on to my computer.If I do not run the command above,...
View Article