DEV Community

loading...

Discussion on: Configuring SSH for git

Collapse
victoryarema profile image
Victor Yarema

Just wanted to warn that "eval ssh-agent" is one of the worst advices. More secure way to do the same is
env | grep 'SSH_AGENT_PID=' || exec ssh-agent "${SHELL}"
For those who want to know why I recommend just to search for more information. There are many articles that describe it.