Fehler beim Starten von ProtonVPN über die CLI mit SSH

Fehler beim Starten von ProtonVPN über die CLI mit SSH

Wenn ich physisch an meinem Desktop sitze, kann ich ProtonVPN problemlos mit dem Befehl starten protonvpn-cli c.

Wenn ich jedoch eine Remoteverbindung über eine SSH-Verbindung herstelle und denselben Befehl ausführe, erhalte ich diese Fehlermeldung: Unable to setup reconnect. Please make sure that you have access to internet or that you've previously connected to another server.

Ich hatte bei meiner Suche in den Foren bisher kein Glück und wäre daher für jede Hilfe dankbar.

Ich verwende derzeit Ubuntu 20.04.3 LTS und das offizielle ProtonVPN-Paket (https://protonvpn.com/support/linux-ubuntu-vpn-setup/)

Antwort1

Nach langer Suche habe ich endlich diesen Fix gefunden!

https://djangocas.dev/blog/linux/troubleshooting-protonvpn-EnableIPv6LeakProtectionError-Unable-to-add-IPv6-leak-protection-connection-interface/

Um dieses Problem zu beheben, müssen wir eine PolicyKitRegel für hinzufügen NetworkManager.

Erstellen Sie mit root einen Dateinamen /etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pklamit folgendem Inhalt:

Identity=unix-user:<your username>
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=no
ResultActive=yes

Ersetzen Sie es <your username>durch Ihren Linux-Benutzernamen.

Für mehrere Benutzernamen:

Identity=unix-user:<username1>;unix-user:<username2>

Überprüfen Sie, PolicyKitob der Authentifizierungs-Agent vorhanden ist oder nicht:

# ls /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
ls: cannot access '/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1': No such file or directory

Falls die Datei nicht vorhanden ist, installieren Sie sie wie folgt apt-get install policykit-1-gnome:

# apt-get install policykit-1-gnome

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  policykit-1-gnome
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 68.2 kB of archives.
After this operation, 508 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 policykit-1-gnome amd64 0.105-7 [68.2 kB]
Fetched 68.2 kB in 0s (752 kB/s)
Selecting previously unselected package policykit-1-gnome.
(Reading database ... 133186 files and directories currently installed.)
Preparing to unpack .../policykit-1-gnome_0.105-7_amd64.deb ...
Unpacking policykit-1-gnome (0.105-7) ...
Setting up policykit-1-gnome (0.105-7) ...

Wenn policykit-1-gnomees nicht vorhanden ist, versuchen Sie, mithilfe apt-cacheder Suche PolicyKit Authentication Agentden richtigen Paketnamen zu erhalten:

# apt-cache search PolicyKit Authentication Agent
lxqt-policykit - LXQt authentication agent for PolicyKit
lxpolkit - LXDE PolicyKit authentication agent
mate-polkit - MATE authentication agent for PolicyKit-1
mate-polkit-bin - MATE authentication agent for PolicyKit-1 (executable wrapper script)
mate-polkit-common - MATE authentication agent for PolicyKit-1 (common files)
libpolkit-agent-1-0 - PolicyKit Authentication Agent API
libpolkit-agent-1-dev - PolicyKit Authentication Agent API - development files
policykit-1-gnome - authentication agent for PolicyKit
polkit-kde-agent-1 - KDE dialogs for PolicyKit
ukui-polkit - UKUI authentication agent for PolicyKit-1

Versuchen Sie dann erneut, connect auszuführen protonvpn-cli. Dann sollte alles klappen.

verwandte Informationen