简体   繁体   中英

In which directory or filepath are you supposed to run eval ssh-agent?

I'm building out a couple git users on my PC(ubuntu) to practice workflow on Github and was using this website to build out the users. I'm at the 3rd part and just typed in eval '$(ssh-agent)' but get back

bash: SSH_AUTH_SOCK=/tmp/ssh-FxjmM29tR2ak/agent.3856;: No such file or directory

`Is there a way to solve this?

There should not be single quotes in that command. Like this:

eval $(ssh-agent)

Which directory or filepath are you suppose to run eval ssh-agent in?

The problem had nothing to do with the directory in which you run the command.

The problem is that you evaluated the literal string '$(ssh-agent)', instead of the output of that command. The single quotes make the difference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM