Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval "$(ssh-agent -s)" eval not found #845

Open
sandragjacinto opened this issue Nov 6, 2024 · 2 comments
Open

eval "$(ssh-agent -s)" eval not found #845

sandragjacinto opened this issue Nov 6, 2024 · 2 comments

Comments

@sandragjacinto
Copy link

hi ! I am trying to use a-shell with git bue I am unable to start the ss-agent because eval errors not found.

Have you encounter this issue ?

thanks !

@holzschu
Copy link
Owner

holzschu commented Nov 6, 2024

I think that in a-Shell you just need to call ssh-agent instead of eval "$(ssh-agent -s)".

@macOneOone
Copy link

macOneOone commented Nov 7, 2024

I guess @sandragjacinto is trying to configure ssh-key for GitHub. If so, then I've to say that it's not to easy.

Did some workarounds and this is what I've now

First you have to generate ssh-key ssh-keygen -t ed25519 -C "[email protected]"

Then, change the .ssh/config file to:

Host GitHub
     HostName github.com
     User your_github_user
     IdentifyFile ~/Document/.ssh/ed25519 # this is the name of your private key
     AddKeyToAgent yes
     IdentitiesOnly yes

Then give the right permissions
image

As a result, when you type git clone [email protected]:your_github_user/projects.git it will ask you the password. Unfortunately it will request every time your password. As a solution, I had to change the config file from git (.git/config) (not recommend) to:

[user]
   identityFile = ~/Document/.ssh/ed25519 # this is the name of your private key
   password = "your_password_here"
   name = "your_github_user"
   email = "your_github_user_email"

This is because UseKeychain doesn't work, at least for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants