'git pull gets Permission denied (publickey) in Intellij but works in terminal

I created keys with ssh-keygen and added it to ssh-agent. Things works fine in terminal, but Intellij seems to run git pull without using keys in ssh-agent. Is there a way to tell intellij to check the keys in ssh-agent



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source