Skip to main content

Posts

Showing posts with the label ssh

.ssh/config: “Bad configuration option: UseKeychain” on Mac OS

After upgrading Mac OS to Mojave I started seeing this error when doing "git pull". I was able to follow the steps below as described here ; 1. open ssh config vi ~/.ssh/config 2. Add the following lines to ssh config to keep your configuration compatible with both new and old versions of openssh. IgnoreUnknown UseKeychain UseKeychain yes That fixed the issue for me. Try running git pull again.    More details about the issue are available here . 

setting ssh identity

I encountered an issue when pushing code from AndroidStudio to github. By default, AndroidStudio picked id_rsa identity file for git operations. However, I had created a different identify file called id_github for my github ssh key. I was able to resolve the problem by creating a ~/.ssh/config file with following content; #github account Host github.com     HostName github.com     User git     IdentityFile ~/.ssh/id_github I was then able to push code to github from AndroidStudio.