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

Gnome Nautilus not recognizing hardware keys for SFTP. #304647

Open
voronind-com opened this issue Apr 16, 2024 · 5 comments
Open

Gnome Nautilus not recognizing hardware keys for SFTP. #304647

voronind-com opened this issue Apr 16, 2024 · 5 comments

Comments

@voronind-com
Copy link

voronind-com commented Apr 16, 2024

Describe the bug

I utilize a Yubikey 5 to connect ssh and sftp. While I am able to connect via command line, nautilus gives me "permission denied" errors.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Launch Nautilus.
  2. Try to connect to sftp://ip
  3. Get a permission error.

Expected behavior

Nautilus uses gnupg agent's ssh support.

Additional context

I use this for Yubikey ssh support:

services.udev.packages = [ pkgs.yubikey-personalization ];

programs.gnupg.agent = {
	enable = true;
	enableSSHSupport = true;
};

Possible related Stackoverflow question and Debian discussion with a fix

Also I am using Sway, not Gnome.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.8.1, NixOS, 24.05 (Uakari), 24.05.20240319.b06025f`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/zaza7mgggz4m5h6z18kajabf4wciaj47-source

Add a 👍 reaction to issues you find important.

@voronind-com
Copy link
Author

I've tried pointing SSH_AUTH_SOCK to /run/user/1000/gnupg/S.gpg-agent.ssh with no luck.

@ashuramaruzxc
Copy link
Member

please test it with services.yubikey-agent.enable = true;

@voronind-com
Copy link
Author

voronind-com commented Apr 17, 2024

please test it with services.yubikey-agent.enable = true;

Tried both with and w/o setting the SSH_AUTH_SOCK - both cases it breaks gpg agent (console auth) and Nautilus does not work, still.

@ashuramaruzxc
Copy link
Member

have you logged out and logged in after setting it? If so have you tried ssh-add -K?

@voronind-com
Copy link
Author

have you logged out and logged in after setting it? If so have you tried ssh-add -K?

I rebooted. Now tried again with ssh-add -K and got this:

$ ssh-add -K                                                                                                                                                                                  │$ ssh home
Enter PIN for authenticator:                                                                                                                                                                  │root@192.168.1.2: Permission denied (publickey).
Provider "internal" returned failure -1                                                                                                                                                       │
Unable to load resident keys: invalid format

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

No branches or pull requests

2 participants