[GH-ISSUE #4954] ssh-agent not usable with netbird #10171

Open
opened 2026-08-05 01:24:52 -04:00 by saavagebueno · 6 comments
Owner

Originally created by @fcayre on GitHub (Dec 16, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/4954

Is your feature request related to a problem? Please describe.
ssh -A <myuser>@<mypeer> does not work when connecting to a netbird peer. This can be seen using ssh-add -L before and after the connection to the peer: even when not empty before connecting (=when the ssh agent is populated), it is empty after connecting to the peer.

Describe the solution you'd like
I would like ssh -A to behave as with standard ssh.

Describe alternatives you've considered
I haven't found any workaround but connecting without using netbird, which totally defeats the purpose of using netbird.

Additional context
ssh -A is particularly useful to fetch data or code from a git remote repository for instance so I think it is a must have feature.

Originally created by @fcayre on GitHub (Dec 16, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/4954 **Is your feature request related to a problem? Please describe.** `ssh -A <myuser>@<mypeer>` does not work when connecting to a netbird peer. This can be seen using `ssh-add -L` before and after the connection to the peer: even when not empty before connecting (=when the ssh agent is populated), it is empty after connecting to the peer. **Describe the solution you'd like** I would like `ssh -A` to behave as with standard ssh. **Describe alternatives you've considered** I haven't found any workaround but connecting without using netbird, which totally defeats the purpose of using netbird. **Additional context** `ssh -A` is particularly useful to fetch data or code from a git remote repository for instance so I think it is a must have feature.
saavagebueno added the feature-request label 2026-08-05 01:24:52 -04:00
Author
Owner

@JereSalo commented on GitHub (Dec 21, 2025):

Same problem, I haven't found any workaround either.
The server I'm connecting to is mine so the "workaround" for now is to have the ssh key directly in the server instead, but ideally I'd use ForwardAgent.

<!-- gh-comment-id:3678869035 --> @JereSalo commented on GitHub (Dec 21, 2025): Same problem, I haven't found any workaround either. The server I'm connecting to is mine so the "workaround" for now is to have the ssh key directly in the server instead, but ideally I'd use `ForwardAgent`.
Author
Owner

@ArthurPons commented on GitHub (Jan 5, 2026):

Would love for this feature to be added / bug to be corrected !

<!-- gh-comment-id:3710018718 --> @ArthurPons commented on GitHub (Jan 5, 2026): Would love for this feature to be added / bug to be corrected !
Author
Owner

@aliberts commented on GitHub (Jan 8, 2026):

Indeed, having this feature would be nice

<!-- gh-comment-id:3725115416 --> @aliberts commented on GitHub (Jan 8, 2026): Indeed, having this feature would be nice
Author
Owner

@Honeyxilia commented on GitHub (Mar 6, 2026):

I also think this issue should be corrected...

<!-- gh-comment-id:4011610122 --> @Honeyxilia commented on GitHub (Mar 6, 2026): I also think this issue should be corrected...
Author
Owner

@yael-commown commented on GitHub (May 28, 2026):

+1 , would love to have this feature working. For now, I have to work around this issue, by resorting to methods that are far from ideal.

<!-- gh-comment-id:4563730915 --> @yael-commown commented on GitHub (May 28, 2026): +1 , would love to have this feature working. For now, I have to work around this issue, by resorting to methods that are far from ideal.
Author
Owner

@Sleepy-Orange commented on GitHub (Jun 19, 2026):

+1, I'm using libpam-ssh-agent-auth for passwordless sudo so that I can lock password for both root and my own user. For now I have to resort to disable-ssh-auth and cannot benefit from the fine-grained ACL provided by Netbird.

<!-- gh-comment-id:4754224024 --> @Sleepy-Orange commented on GitHub (Jun 19, 2026): +1, I'm using `libpam-ssh-agent-auth` for passwordless sudo so that I can lock password for both root and my own user. For now I have to resort to `disable-ssh-auth` and cannot benefit from the fine-grained ACL provided by Netbird.
Sign in to join this conversation.
No Label feature-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#10171