Skip to content

GPG agent forwarding #236

@paspo

Description

@paspo

I need to access my gpg keychain from the remote session.
This is currently working in my setup with ssh, see the sample ssh config (some values are redacted):

host RemoteServer
        User RemoteUser
        Hostname 8.8.8.8
        Port 12345
        IdentityFile ~/.ssh/other/remoteserver
        ForwardAgent yes
        RemoteForward /run/user/1003/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent
        ExitOnForwardFailure yes

So when I connect via SSH, this is working:

ssh RemoteServer
~$ gpg --list-secret-keys

<redacted list of keys>

When I connect via open-remote-ssh, this is not working, even though the socket seems to be created correctly.
Sadly the socket is not working.

After searching old issues, I came to the conclusion that this has something to do with the internal implementation of ssh protocol, instead of relying on the host ssh binary.

Can I suggest the implementation of socket forwarding via something like the current port forwarding?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions