$ sudo gksu wireshark
No protocol specified
(gksu:23603): Gtk-WARNING **: 18:50:43.303: cannot open display: :0
$ sudo -E wireshark
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display.
В некоторых случаях (...) зависает в этой строчке:строчке:
ssh.connect(target, port = sshpo
print("PRINT 1")
ssh.connect(target, port = sshport, username = user, password = password, timeout=5, banner_timeout = 5, auth_timeout=5)
print("PRINT 2")