저는 ArchLinux(공식 패키지 저장소의 버전 1.14.5dev+17+gba83251bb-1)에서 nmcli
wifi 연결을 사용하고 있습니다. 이는 Vodafone EasyBox 네트워크를 제외한 모든 무선 네트워크에 적용됩니다.
올바른 비밀번호로 연결을 활성화하려고 하면 다음 오류 메시지가 나타납니다.
Passwords or encryption keys are required to access the wireless network 'EasyBox-123456'.
Warning: password for '802-11-wireless-security.psk' not given in 'passwd-file' and nmcli cannot ask without '--ask' option.
Error: Connection activation failed: Secrets were required, but not provided
그러나 802-11-wireless-security.psk
다음과 같이 저장됩니다.
$ nmcli con show EasyBox-123456
connection.id: EasyBox-123456
connection.uuid: <hidden>
connection.stable-id: --
connection.type: 802-11-wireless
connection.interface-name: --
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.multi-connect: 0 (default)
connection.auth-retries: -1
connection.timestamp: 0
connection.read-only: no
connection.permissions: --
connection.zone: --
connection.master: --
connection.slave-type: --
connection.autoconnect-slaves: -1 (default)
connection.secondaries: --
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: default
connection.mdns: -1 (default)
connection.llmnr: -1 (default)
802-11-wireless.ssid: EasyBox-123456
802-11-wireless.mode: infrastructure
802-11-wireless.band: --
802-11-wireless.channel: 0
802-11-wireless.bssid: --
802-11-wireless.rate: 0
802-11-wireless.tx-power: 0
802-11-wireless.mac-address: <hidden>
802-11-wireless.cloned-mac-address: --
802-11-wireless.generate-mac-address-mask:--
802-11-wireless.mac-address-blacklist: --
802-11-wireless.mac-address-randomization:default
802-11-wireless.mtu: auto
802-11-wireless.seen-bssids: --
802-11-wireless.hidden: no
802-11-wireless.powersave: 0 (default)
802-11-wireless.wake-on-wlan: 0x1 (default)
802-11-wireless-security.key-mgmt: wpa-psk
802-11-wireless-security.wep-tx-keyidx: 0
802-11-wireless-security.auth-alg: open
802-11-wireless-security.proto: --
802-11-wireless-security.pairwise: --
802-11-wireless-security.group: --
802-11-wireless-security.pmf: 1 (disable)
802-11-wireless-security.leap-username: --
802-11-wireless-security.wep-key0: <hidden>
802-11-wireless-security.wep-key1: <hidden>
802-11-wireless-security.wep-key2: <hidden>
802-11-wireless-security.wep-key3: <hidden>
802-11-wireless-security.wep-key-flags: 0 (none)
802-11-wireless-security.wep-key-type: unknown
802-11-wireless-security.psk: <hidden>
802-11-wireless-security.psk-flags: 0 (none)
802-11-wireless-security.leap-password: <hidden>
802-11-wireless-security.leap-password-flags:0 (none)
802-11-wireless-security.wps-method: 0 (default)
802-11-wireless-security.fils: 0 (default)
ipv4.method: auto
ipv4.dns: --
ipv4.dns-search: --
ipv4.dns-options: ""
ipv4.dns-priority: 0
ipv4.addresses: --
ipv4.gateway: --
ipv4.routes: --
ipv4.route-metric: -1
ipv4.route-table: 0 (unspec)
ipv4.ignore-auto-routes: no
ipv4.ignore-auto-dns: no
ipv4.dhcp-client-id: --
ipv4.dhcp-timeout: 0 (default)
ipv4.dhcp-send-hostname: yes
ipv4.dhcp-hostname: --
ipv4.dhcp-fqdn: --
ipv4.never-default: no
ipv4.may-fail: yes
ipv4.dad-timeout: -1 (default)
ipv6.method: auto
ipv6.dns: --
ipv6.dns-search: --
ipv6.dns-options: ""
ipv6.dns-priority: 0
ipv6.addresses: --
ipv6.gateway: --
ipv6.routes: --
ipv6.route-metric: -1
ipv6.route-table: 0 (unspec)
ipv6.ignore-auto-routes: no
ipv6.ignore-auto-dns: no
ipv6.never-default: no
ipv6.may-fail: yes
ipv6.ip6-privacy: -1 (unknown)
ipv6.addr-gen-mode: stable-privacy
ipv6.dhcp-duid: --
ipv6.dhcp-send-hostname: yes
ipv6.dhcp-hostname: --
ipv6.token: --
proxy.method: none
proxy.browser-only: no
proxy.pac-url: --
proxy.pac-script: --
NetworkManager/wpa-supplicant, 라우터를 다시 시작하고 PMF를 비활성화하는 등 여러 가지 작업을 시도했지만 아무것도 작동하지 않았습니다.
--ask
비밀번호를 묻는 메시지가 표시되지만 동일한 오류 메시지가 표시되도록 지정합니다. 삭제 및 재생성 연결을 사용해 nm-connection-editor
도 작동하지 않습니다. 내 Android 기기에서 문제 없이 실행됩니다.
이 네트워크에 어떻게 연결하나요?
답변1
조금 늦었지만 잠재적인 해결 방법을 찾았습니다. ~에 따르면nmcli에 대한 문서파일 내용이 포함된 비밀번호 파일을 제공하여 AP에 연결할 수 있습니다.
802-11-wireless-security.psk:secret12345
그리고 명령:
nmcli con up <connection name> passwd-file <filename>
도움이 되었기를 바랍니다.
답변2
제가 최근 새 ISP로 이동한 후 겪었던 것처럼 이 문제에 직면한 다른 분들을 위해 이 메시지도 비밀번호 오타로 인해 발생했습니다 nm-connection-editor
. 이는 Oracle Linux 7과 Oracle Linux 8 모두에 해당됩니다.