-
Notifications
You must be signed in to change notification settings - Fork 21
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
sheldon lock --update fails if github is configured to use ssh #127
Comments
@lburgazzoli are you using an |
Yes I have the ssh-agent running (on OSX)
My ssh config is like:
|
Just saw this - you need the ssh agent env vars on any shell that you run, so it makes sense to Also on macOS I do this:
|
@tyronick o great, that works ! |
@rossmacarthur I am encountering this issue as well but as i am accessing my server via ssh this does not work. I am able to access github via ssh directly but not via sheldon.
|
@qnlbnsl your config is trying to access github over https. If access via https is not allowed on the server this won't work. If you intend to clone repos using ssh you will need to modify your sheldon config file. See the documentation https://sheldon.cli.rs/Configuration.html#cloning-with-git-or-ssh-protocols |
I'm having the same issue. Sheldon is stuck at fetching the repositories when using git over ssh. ❯ less ~/.config/sheldon/plugins.toml
shell = "zsh"
[plugins]
[plugins.zsh-autosuggestions]
github = 'zsh-users/zsh-autosuggestions'
proto="ssh"
... ❯ less ~/.config/git/config
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
... ❯ less ~/.ssh/config
Host github.com
HostName ssh.github.com
Port 443
IdentityFile ~/.ssh/id_ed25519
AddKeysToAgent yes
❯ ps -ef | grep ssh-agent
Chris 210 156 0 16:18 ? 00:00:00 /usr/bin/ssh-agent -D -a /run/user/1000/ssh-agent.socket
Chris 1826 1244 0 16:23 pts/0 00:00:00 rg --color=auto ssh-agent ❯ env
...
SSH_AUTH_SOCK=/run/user/1000//ssh-agent.socket
... Running ❯ sheldon lock --update
Loaded ~/.config/sheldon/plugins.toml
^C Hovever when I run ❯ ssh git@github.com
PTY allocation request failed on channel 0
Hi Systemcluster! You've successfully authenticated, but GitHub does not provide shell access.
Connection to ssh.github.com closed.
❯ sheldon lock --update
Loaded ~/.config/sheldon/plugins.toml
Checked ssh://git@github.com/zsh-users/zsh-autosuggestions
...
Locked ~/.local/share/sheldon/plugins.lock Any suggestions for debugging this? |
Solved, I'm leaving this here in case anyone else runs into it. The issue is a combination of multiple potential issues. I did the following, not all of it might be necessary:
Now
Now |
My plugin setup is as follow:
When I run
sheldon lock --update
, the process ends after a long time with the following error:This seems to be caused by the fact that in my git configuration, I always use ssh to access git repos:
If I remove the mapping above, then the command succeed.
The text was updated successfully, but these errors were encountered: