AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1406921
Accepted
MrConorAE
MrConorAE
Asked: 2022-05-06 21:11:14 +0800 CST2022-05-06 21:11:14 +0800 CST 2022-05-06 21:11:14 +0800 CST

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

  • 772

在 Ubuntu 22.04 上使用 Firefox snap(最新版本 1300)。我正在尝试在 GitHub、Cloudflare 和其他各种网站上使用安全密钥。当站点提示我使用我的密钥时,Firefox 提示窗口(“此站点要对您进行身份验证...立即连接安全密钥,或取消”)出现,但无论我做什么,密钥似乎都不是被 Firefox 识别,甚至看到。

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

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

输出snap connections firefox:

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已连接。

任何建议将不胜感激。

firefox
  • 3 3 个回答
  • 314 Views

3 个回答

  • Voted
  1. Best Answer
    MrConorAE
    2022-07-23T14:42:11+08:002022-07-23T14:42:11+08:00

    原来我的安全密钥不在快照识别的 U2F 设备列表中。可以在 snapcrafter Github 上查看(硬件供应商/ID 组合)列表。

    要解决此问题,请尝试查找您的安全密钥的 ID,并将其提交到问题/拉取请求中以添加它。然后,您的密钥应该可以与下一个核心更新一起使用。

    • 2
  2. Serge Victor
    2022-05-12T19:04:55+08:002022-05-12T19:04:55+08:00

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

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

    我已将我的设备添加到该文件中(您可以在 dmesg 中找到这些详细信息):

    # u2f-devices
    # MK FIDO
    SUBSYSTEM=="hidraw", KERNEL=="hidraw*", ATTRS{idVendor}=="0416", ATTRS{idProduct}=="c138", TAG+="snap_firefox_firefox"
    

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

    现在可以了!(直到新的快照出现,然后你需要重新开始游戏......)

    • 1
  3. H4F
    2022-08-27T09:59:11+08:002022-08-27T09:59:11+08:00

    我在最新的 Ledger Nano S Plus 上遇到了完全相同的问题,我终于解决了:先决条件:从 snap 安装 Ledger Nano S Plus Firefox

    1. 做lsusb -v和收集product id
    2. sudo vim /etc/udev/rules.d/70-snap.firefox.rule找到与Ledger Blue + Nano S + Nano X

    应该是这样的:

    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

相关问题

  • Flash 在 Firefox 中无法正常工作。不会响应某些点击[关闭]

  • Firefox 鼠标中键滚动

  • 如何解决 Firefox 中的字体问题?

  • 使用突触或通过 Firefox 的插件菜单安装 adblock?

  • Firefox 的 Ubuntu Firefox 修改扩展有什么作用?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve