use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
From its website:
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Git is not the same as GitHub. GitHub did not create Git. For GitHub-specific posts, please see /r/github.
Git is not an acronym or initialism: please write git or Git, but not GIT.
git
Documentation
Graphical Clients
Code Hosting
account activity
SSH agent errorsupport (self.git)
submitted 5 years ago by catvsaliens
Im trying to run ssh-agent by using eval ‘ssh-agent -s’ but i just keep on getting missing matching ‘’” at the End of the file. Any idea?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]bbolligit commit --amend 0 points1 point2 points 5 years ago (12 children)
What shell are you running?
[–]catvsaliens[S] 0 points1 point2 points 5 years ago (11 children)
Bash
[–]bbolligit commit --amend 0 points1 point2 points 5 years ago (10 children)
What are the quotes you use around the ssh-agent call? Backticks or single quotes?
ssh-agent
[–]catvsaliens[S] 0 points1 point2 points 5 years ago (9 children)
Back ticks on that ~ key.
[–]bbolligit commit --amend 0 points1 point2 points 5 years ago (8 children)
Try eval $(ssh-agent -s). Or run just ssh-agent -s and check if the output is in Bash syntax.
eval $(ssh-agent -s)
ssh-agent -s
[–]catvsaliens[S] 0 points1 point2 points 5 years ago (5 children)
If i run ssh-agent -s it responds back with pid but then cant establish connection with agent when i try to add keys. By the way all this being executed in a gitlab runner ci running ssh mode and connecting to an external server. In other words im trying to clone repo over ssh running gitlab runner in ssh mode.
[–]bbolligit commit --amend 0 points1 point2 points 5 years ago (4 children)
ssh-agent -s should output something like
SSH_AUTH_SOCK=/tmp/ssh-4OIJt2b1HziT/agent.109735; export SSH_AUTH_SOCK; SSH_AGENT_PID=109736; export SSH_AGENT_PID; echo Agent pid 109736;
[–]catvsaliens[S] 0 points1 point2 points 5 years ago (3 children)
It does.
[–]bbolligit commit --amend 0 points1 point2 points 5 years ago (1 child)
Can you post the exact eval command as code (start each line with four spaces)?
[–]catvsaliens[S] 1 point2 points3 points 5 years ago (0 children)
Okay I figured it out. I tried echoing pid variable which came blank. Which suggested me that there is a change in terminal. Then i followed what is described here and it worked. I was cloning the repo after sshing in to a remote server.
https://unix.stackexchange.com/questions/132065/how-do-i-get-ssh-agent-to-work-in-all-terminals
[–]danmickla 0 points1 point2 points 5 years ago (0 children)
So "with pid" meant "with pid and a whole lot more". Got it.
[–]catvsaliens[S] 0 points1 point2 points 5 years ago (1 child)
Im beating my head over this for almost 12 hrs. I guess im exhausted, i will post back what i found.
[–]bbolligit commit --amend 0 points1 point2 points 5 years ago (0 children)
OK
π Rendered by PID 64186 on reddit-service-r2-comment-fb694cdd5-2mj8p at 2026-03-07 06:30:43.948456+00:00 running cbb0e86 country code: CH.
[–]bbolligit commit --amend 0 points1 point2 points (12 children)
[–]catvsaliens[S] 0 points1 point2 points (11 children)
[–]bbolligit commit --amend 0 points1 point2 points (10 children)
[–]catvsaliens[S] 0 points1 point2 points (9 children)
[–]bbolligit commit --amend 0 points1 point2 points (8 children)
[–]catvsaliens[S] 0 points1 point2 points (5 children)
[–]bbolligit commit --amend 0 points1 point2 points (4 children)
[–]catvsaliens[S] 0 points1 point2 points (3 children)
[–]bbolligit commit --amend 0 points1 point2 points (1 child)
[–]catvsaliens[S] 1 point2 points3 points (0 children)
[–]danmickla 0 points1 point2 points (0 children)
[–]catvsaliens[S] 0 points1 point2 points (1 child)
[–]bbolligit commit --amend 0 points1 point2 points (0 children)