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

Using ssh-ident with agent forwarding #71

Open
ELLIOTTCABLE opened this issue May 11, 2022 · 0 comments
Open

Using ssh-ident with agent forwarding #71

ELLIOTTCABLE opened this issue May 11, 2022 · 0 comments

Comments

@ELLIOTTCABLE
Copy link

I'm trying to figure out how to use ssh-ident on a machine where the agent comes in via forwarding.

My dotfiles add a ~/.bin/ssh alias to a submodule checkout of ssh-ident. This means on any machine I use, ssh-ident gets invoked instead of /usr/bin/ssh (or whatever.) However, now, on my remote machine — where the agent comes into scope via agent-forwarding, I'm finding myself unable to contact git, etc:

❯ ssh -T [email protected]
[Warn] Warning: no keys found for identity elliott.cable in:
[Warn] ['/home/elliott.cable/.ssh/identities/elliott.cable', '/home/elliott.cable/.ssh']
[email protected]: Permission denied (publickey).

❯ /usr/bin/ssh -T [email protected]
Hi elliott.cable! You've successfully authenticated, but GitHub does not provide shell access.

I'm temporarily circumventing this by removing my wrapper entirely on the remote machine; but I'd like to more permanently fix it. Is there a way to ensure agent-forwarding still works under ssh-ident?

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

1 participant