首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >允许Firefox快速访问USB安全密钥

允许Firefox快速访问USB安全密钥
EN

Ask Ubuntu用户
提问于 2022-05-06 05:11:14
回答 3查看 1.1K关注 0票数 2

在Ubuntu22.04上使用Firefox snap (最新版本1300)。我试图在GitHub、Cloudflare和其他各种站点上使用一个安全密钥。当站点提示我使用我的密钥时,Firefox提示窗口(“这个站点想要验证您.现在连接一个安全密钥,或者取消”)会显示出来,但是不管我做了什么,这个密钥似乎没有被Firefox识别,甚至没有被看到。

安全密钥在火狐的.deb版本上运行良好。

如何配置snap以允许访问安全密钥?

snap connections firefox的输出:

代码语言:javascript
复制
Interface                 Plug                            Slot                             Notes
audio-playback            firefox:audio-playback          :audio-playback                  -
audio-record              firefox:audio-record            :audio-record                    -
avahi-observe             firefox:avahi-observe           :avahi-observe                   -
browser-support           firefox:browser-sandbox         :browser-support                 -
camera                    firefox:camera                  :camera                          -
content[gnome-3-38-2004]  firefox:gnome-3-38-2004         gnome-3-38-2004:gnome-3-38-2004  -
content[gtk-3-themes]     firefox:gtk-3-themes            gtk-common-themes:gtk-3-themes   -
content[icon-themes]      firefox:icon-themes             gtk-common-themes:icon-themes    -
content[sound-themes]     firefox:sound-themes            gtk-common-themes:sound-themes   -
cups-control              firefox:cups-control            :cups-control                    -
dbus                      -                               firefox:dbus-daemon              -
desktop                   firefox:desktop                 :desktop                         -
desktop-legacy            firefox:desktop-legacy          :desktop-legacy                  -
gsettings                 firefox:gsettings               :gsettings                       -
hardware-observe          firefox:hardware-observe        :hardware-observe                -
home                      firefox:home                    :home                            -
joystick                  firefox:joystick                :joystick                        -
mpris                     -                               firefox:mpris                    -
network                   firefox:network                 :network                         -
network-observe           firefox:network-observe         -                                -
opengl                    firefox:opengl                  :opengl                          -
personal-files            firefox:dot-mozilla-firefox     :personal-files                  -
removable-media           firefox:removable-media         :removable-media                 -
screen-inhibit-control    firefox:screen-inhibit-control  :screen-inhibit-control          -
system-files              firefox:etc-firefox-policies    :system-files                    -
system-packages-doc       firefox:system-packages-doc     :system-packages-doc             -
u2f-devices               firefox:u2f-devices             :u2f-devices                     -
unity7                    firefox:unity7                  :unity7                          -
upower-observe            firefox:upower-observe          :upower-observe                  -
wayland                   firefox:wayland                 :wayland                         -
x11                       firefox:x11                     :x11                             -

注意:hardware-observe是如何连接的。

如有任何建议,将不胜感激。

EN

回答 3

Ask Ubuntu用户

回答已采纳

发布于 2022-07-22 22:42:11

事实证明,我的安全密钥不在snaps识别的U2F设备列表中。(硬件供应商/ID组合的列表)可以在管理手工艺者Github上看到.)

要解决这一问题,请尝试查找您的安全密钥in,并在问题/拉请求中提交该in以使其添加。然后,您的密钥应该与下一个核心更新一起工作。

票数 2
EN

Ask Ubuntu用户

发布于 2022-05-12 03:04:55

应该是:snap connect firefox:u2f-devices,但它对我也不起作用:

文件/etc/udev/rules.d/70-snap.firefox.rules根本不涵盖大多数U2F设备。

我在该文件中添加了我的设备(您可以在dmesg中发现这些细节):

代码语言:javascript
复制
# u2f-devices
# MK FIDO
SUBSYSTEM=="hidraw", KERNEL=="hidraw*", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="c138", TAG+="snap_firefox_firefox"

添加后,重新启动firefox,并拔出并插入密钥。

现在起作用了!(直到新的快照到来,然后你需要重新开始游戏.)

票数 1
EN

Ask Ubuntu用户

发布于 2022-08-26 17:59:11

我和最新的Ledger Nano S Plus有着完全相同的问题,我最终解决了这个问题:先决条件: Ledger Nano S Plus Firefox安装自snap

  1. lsusb -v并收集product id
  2. sudo vim /etc/udev/rules.d/70-snap.firefox.rule找到带有Ledger Blue + Nano S + Nano X的行

应该是这样的:

代码语言:javascript
复制
SUBSYSTEM=="hidraw", KERNEL=="hidraw*", ATTRS{idVendor}=="2c97", ATTRS{idProduct}=="0000|0001|0004|0005|0015|1005|1015|4005|4015|5015", TAG+="snap_firefox_firefox"

您需要做的是将新的productId附加到属性的末尾。

  1. sudo systemctl reload apparmor.service

希望能帮上忙

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1406921

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档