Erro no SSH

1. Erro no SSH

Michel Soares
ricknyc

(usa Outra)

Enviado em 16/12/2020 - 08:32h

Olá, estou tentando instalar a aplicação AirControl2 para o server ubuntu que tenho em uma VM.
Quando tento compilar o arquivo .bin me retorna um erro.
Invalid MIT-MAGIC-COOKIE-1 keyjava.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:129)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:231)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:588)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:583)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:582)
at java.desktop/sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2212)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1096)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:440)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:150)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1560)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:587)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:629)
at java.desktop/javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1404)
at java.desktop/javax.swing.UIManager.initialize(UIManager.java:1517)
at java.desktop/javax.swing.UIManager.maybeInitialize(UIManager.java:1483)
at java.desktop/javax.swing.UIManager.getUI(UIManager.java:1056)
at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:126)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:86)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
at com.install4j.runtime.installer.frontend.FormPanel.<init>(FormPanel.java:50)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
at com.install4j.runtime.installer.Installer.main(Installer.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
An error occurred:
java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
Error log: /tmp/install4jError2072536095700813958.log
java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:129)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:231)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:588)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:583)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:582)
at java.desktop/sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2212)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1096)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:440)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:150)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1560)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:587)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:629)
at java.desktop/javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1404)
at java.desktop/javax.swing.UIManager.initialize(UIManager.java:1517)
at java.desktop/javax.swing.UIManager.maybeInitialize(UIManager.java:1483)
at java.desktop/javax.swing.UIManager.getUI(UIManager.java:1056)
at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:126)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:86)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
at com.install4j.runtime.installer.frontend.FormPanel.<init>(FormPanel.java:50)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
at com.install4j.runtime.installer.Installer.main(Installer.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)


Pesquisei sobre e acho que o problema se deve a o serviço SSH, quando fui verificar o serviço estava com erro. Quando dou o comando para verificar o status
systemctl status ssh.service 
me retorna que esta em falha.

Pesquisei em varios lugares e não consegui identificar onde é o erro.

ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2020-12-15 18:05:21 -03; 14h ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 1500 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCEPTION)

dez 15 18:05:21 xbtu systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
dez 15 18:05:21 xbtu systemd[1]: Stopped OpenBSD Secure Shell server.
dez 15 18:05:21 xbtu systemd[1]: ssh.service: Start request repeated too quickly.
dez 15 18:05:21 xbtu systemd[1]: ssh.service: Failed with result 'exit-code'.
dez 15 18:05:21 xbtu systemd[1]: Failed to start OpenBSD Secure Shell server.



Alguém poderia me dar um auxilio?




  


2. Re: Erro no SSH

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 16/12/2020 - 08:36h


posta ai o conteúdo desse arquivo

/tmp/install4jError2072536095700813958.log


3. Erro no SSH

Michel Soares
ricknyc

(usa Outra)

Enviado em 16/12/2020 - 08:44h

danniel-lara escreveu:


posta ai o conteúdo desse arquivo

/tmp/install4jError2072536095700813958.log



Tá.

Exception:

java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:129)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:231)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:588)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:583)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:582)
at java.desktop/sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2212)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1096)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:440)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:150)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1560)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:587)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:629)
at java.desktop/javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1404)
at java.desktop/javax.swing.UIManager.initialize(UIManager.java:1517)
at java.desktop/javax.swing.UIManager.maybeInitialize(UIManager.java:1483)
at java.desktop/javax.swing.UIManager.getUI(UIManager.java:1056)
at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:126)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:86)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
at com.install4j.runtime.installer.frontend.FormPanel.<init>(FormPanel.java:50)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:>
at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.jav>
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
at com.install4j.runtime.installer.Installer.main(Installer.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)

System properties:

awt.toolkit=sun.awt.X11.XToolkit
java.specification.version=11
sun.cpu.isalist=
sun.jnu.encoding=UTF-8
java.class.path=i4jruntime.jar
java.vm.vendor=Ubuntu
sun.arch.data.model=64
install4j.exeDir=/home/superu/
sun.font.fontmanager=sun.awt.X11FontManager
java.vendor.url=https://ubuntu.com/
user.timezone=America/Sao_Paulo
os.name=Linux
java.vm.specification.version=11
sun.java.launcher=SUN_STANDARD
user.country=BR
sun.boot.library.path=/usr/lib/jvm/java-11-openjdk-amd64/lib
install4j.alternativeLogfile=/home/superu/.AirControl2/installation.log
sun.java.command=com.install4j.runtime.launcher.UnixLauncher launch 0 com.install4j.runtime.installer.Installer
jdk.debug=release
sun.cpu.endian=little
user.home=/home/superu
user.language=pt
install4j.keepLog=true
java.specification.vendor=Oracle Corporation
java.version.date=2020-11-04
java.home=/usr/lib/jvm/java-11-openjdk-amd64
file.separator=/
java.vm.compressedOopsMode=32-bit
line.separator=

java.specification.name=Java Platform API Specification
java.vm.specification.vendor=Oracle Corporation
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
exe4j.moduleName=/home/superu/aircontrol-v2.1-180316-1259-unix64.bin
java.awt.headless=true
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
i4jv=0
java.runtime.version=11.0.9.1+1-Ubuntu-0ubuntu1.20.04
user.name=superu
path.separator=:
os.version=5.4.0-58-generic
java.runtime.name=OpenJDK Runtime Environment
sun.java2d.noddraw=true
file.encoding=UTF-8
java.vm.name=OpenJDK 64-Bit Server VM
install4j.jvmDir=/usr/lib/jvm/java-11-openjdk-amd64
install4j.cwd=/home/superu
install4j.appDir=/home/superu/
java.vendor.url.bug=https://bugs.launchpad.net/ubuntu/+source/openjdk-lts
java.io.tmpdir=/tmp
java.version=11.0.9.1
user.dir=/home/superu/aircontrol-v2.1-180316-1259-unix64.bin.4036.dir
os.arch=amd64
java.vm.specification.name=Java Virtual Machine Specification
exe4j.totalDataLength=58152373
java.awt.printerjob=sun.print.PSPrinterJob
sun.os.patch.level=unknown
java.library.path=/home/superu/aircontrol-v2.1-180316-1259-unix64.bin.4036.dir/user::/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu>
java.vm.info=mixed mode, sharing
java.vendor=Ubuntu
java.vm.version=11.0.9.1+1-Ubuntu-0ubuntu1.20.04
sun.io.unicode.encoding=UnicodeLittle
java.class.version=55.0
i4j.vpt=true






4. Re: Erro no SSH

Wagner Souza
wagnerfs

(usa Fedora)

Enviado em 16/12/2020 - 08:49h

Executa o comando abaixo e posta a saída aqui para darmos uma olhada

journalctl -xe 


Você não fez nenhuma alteração no arquivo /etc/ssh/sshd_config? Configurações conflitantes podem parar o serviço. Essa máquina tem selinux? Se sim, possa ser que o selinux esteja bloqueando.
_________________________
"GNU/Linux for human beings."

ºvº "Software Livre: não é pelo dinheiro.
/( _ ) É uma questão de consciência."
^ ^
Blog.: https://zerotoherosec.blogspot.com/


5. Erro no SSH

Michel Soares
ricknyc

(usa Outra)

Enviado em 16/12/2020 - 09:01h

wagnerfs escreveu:

Executa o comando abaixo e posta a saída aqui para darmos uma olhada

journalctl -xe 


Você não fez nenhuma alteração no arquivo /etc/ssh/sshd_config? Configurações conflitantes podem parar o serviço. Essa máquina tem selinux? Se sim, possa ser que o selinux esteja bloqueando.
_________________________
"GNU/Linux for human beings."

ºvº "Software Livre: não é pelo dinheiro.
/( _ ) É uma questão de consciência."
^ ^
Blog.: https://zerotoherosec.blogspot.com/





dez 16 08:45:09 xbtu org.xfce.ScreenSaver[1154]: Xlib:  extension "DPMS" missing on display ":10.0".
dez 16 08:45:24 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:45:39 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:45:54 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:46:09 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:46:24 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:46:39 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:46:54 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:47:09 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:47:24 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:47:39 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:47:54 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:48:09 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:48:24 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:48:39 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:48:54 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:49:09 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:49:24 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:49:39 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:49:54 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:50:09 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:50:24 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:50:40 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 08:50:45 xbtu xfce4-screensaver-dialog[4213]: pam_unix(xfce4-screensaver:auth): Couldn't open /etc/securetty: Arquivo ou diret>
dez 16 08:50:45 xbtu xfce4-screensaver-dialog[4230]: pam_unix(xfce4-screensaver:auth): Couldn't open /etc/securetty: Arquivo ou diret>
dez 16 08:50:49 xbtu xfce4-screensaver-dialog[4231]: pam_unix(xfce4-screensaver:auth): Couldn't open /etc/securetty: Arquivo ou diret>
dez 16 08:50:49 xbtu xfce4-screensaver-dialog[4213]: gkr-pam: stashed password to try later in open session
dez 16 08:50:55 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".



A Vm é um Ubuntu. Quando tento desabilitar o SELINUX
me retorna outro erro.
Comando 'sestatus' não encontrado, mas poder ser instalado com:

sudo apt install policycoreutils


Quando tento desabilitar tambem me da erro, arquivo não encontrado e
sudo setenforce 0
[sudo] senha para superu:
sudo: setenforce: comando não encontrado







6. Re: Erro no SSH

leandro peçanha scardua
leandropscardua

(usa Ubuntu)

Enviado em 16/12/2020 - 14:19h

Tente reinstalar o ssh


7. Erro no SSH

Michel Soares
ricknyc

(usa Outra)

Enviado em 16/12/2020 - 14:34h

Tentei desinstalar e instalar novamente.

sudo apt-get remove openssh-server 


e depois

 sudo apt-get install openssh-server
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Pacotes sugeridos:
molly-guard monkeysphere
Os NOVOS pacotes a seguir serão instalados:
openssh-server
0 pacotes atualizados, 1 pacotes novos instalados, 0 a serem removidos e 13 não atualizados.
É preciso baixar 377 kB de arquivos.
Depois desta operação, 1.527 kB adicionais de espaço em disco serão usados.
Obter:1 http://br.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-server amd64 1:8.2p1-4ubuntu0.1 [377 kB]
Baixados 377 kB em 0s (2.690 kB/s)
Pré-configurando pacotes ...
A seleccionar pacote anteriormente não seleccionado openssh-server.
(Lendo banco de dados ... 371011 ficheiros e directórios actualmente instalados.)
A preparar para desempacotar .../openssh-server_1%3a8.2p1-4ubuntu0.1_amd64.deb ...
A descompactar openssh-server (1:8.2p1-4ubuntu0.1) ...
Configurando openssh-server (1:8.2p1-4ubuntu0.1) ...
rescue-ssh.target is a disabled or a static unit, not starting it.
Job for ssh.service failed because the control process exited with error code.
See "systemctl status ssh.service" and "journalctl -xe" for details.
invoke-rc.d: initscript ssh, action "restart" failed.
&#9679; ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2020-12-16 14:32:32 -03; 12ms ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 5685 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCEPTION)

dez 16 14:32:32 xbtu systemd[1]: Failed to start OpenBSD Secure Shell server.
dpkg: erro ao processar o pacote openssh-server (--configure):
o subprocesso instalado, do pacote openssh-server, o script post-installation retornou erro do status de saída 1
A processar 'triggers' para systemd (245.4-4ubuntu3.3) ...
A processar 'triggers' para man-db (2.9.1-1) ...
A processar 'triggers' para ufw (0.36-6) ...
Erros foram encontrados durante o processamento de:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


E me retornou este erro.




8. Erro no SSH

Michel Soares
ricknyc

(usa Outra)

Enviado em 16/12/2020 - 14:42h

Tentei desinstalar novamente e instalar tambem o cliente.

Configurando openssh-server (1:8.2p1-4ubuntu0.1) ...
rescue-ssh.target is a disabled or a static unit, not starting it.
Job for ssh.service failed because the control process exited with error code.
See "systemctl status ssh.service" and "journalctl -xe" for details.
invoke-rc.d: initscript ssh, action "restart" failed.
&#9679; ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2020-12-16 14:40:24 -03; 7ms ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 7348 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCEPTION)
dpkg: erro ao processar o pacote openssh-server (--configure):
o subprocesso instalado, do pacote openssh-server, o script post-installation retornou erro do status de saída 1
A processar 'triggers' para systemd (245.4-4ubuntu3.3) ...
A processar 'triggers' para man-db (2.9.1-1) ...
A processar 'triggers' para ufw (0.36-6) ...
Erros foram encontrados durante o processamento de:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


O arquivo journalctl

journalctl -xe
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit ssh.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
dez 16 14:40:25 xbtu systemd[1]: Stopped OpenBSD Secure Shell server.
-- Subject: A unidade ssh.service concluiu o desligamento
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A unidade ssh.service concluiu o desligamento.
dez 16 14:40:25 xbtu systemd[1]: ssh.service: Start request repeated too quickly.
dez 16 14:40:25 xbtu systemd[1]: ssh.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit ssh.service has entered the 'failed' state with result 'exit-code'.
dez 16 14:40:25 xbtu systemd[1]: Failed to start OpenBSD Secure Shell server.
-- Subject: A unidade ssh.service falhou
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A unidade ssh.service falhou.
--
-- O resultado é failed.
dez 16 14:40:30 xbtu sudo[6994]: pam_unix(sudo:session): session closed for user root
dez 16 14:40:38 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".
dez 16 14:40:53 xbtu org.xfce.ScreenSaver[1154]: Xlib: extension "DPMS" missing on display ":10.0".



9. Erro no SSH

Michel Soares
ricknyc

(usa Outra)

Enviado em 16/12/2020 - 15:28h

Atualização sobre o erro.

Quando entrei no arquivo do SSH e comentei a linha 91
#FowardX11 


O serviço SSH voltou a funcionar.

Mas ainda não consigo efetuar a compilação do arquivo .bin
Que é o meu principal objetivo.

./aircontrol-v2.1-180316-1259-unix64.bin 
Starting Installer ...
Invalid MIT-MAGIC-COOKIE-1 keyjava.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:129)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:231)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:588)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:583)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:582)
at java.desktop/sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2212)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1096)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:440)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:150)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1560)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:587)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:629)
at java.desktop/javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1404)
at java.desktop/javax.swing.UIManager.initialize(UIManager.java:1517)
at java.desktop/javax.swing.UIManager.maybeInitialize(UIManager.java:1483)
at java.desktop/javax.swing.UIManager.getUI(UIManager.java:1056)
at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:126)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:86)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
at com.install4j.runtime.installer.frontend.FormPanel.<init>(FormPanel.java:50)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
at com.install4j.runtime.installer.Installer.main(Installer.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
An error occurred:
java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
Error log: /tmp/install4jError16860610929526502058.log
java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:129)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:231)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:588)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:583)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:582)
at java.desktop/sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2212)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1096)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:440)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:150)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1560)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:587)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:629)
at java.desktop/javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1404)
at java.desktop/javax.swing.UIManager.initialize(UIManager.java:1517)
at java.desktop/javax.swing.UIManager.maybeInitialize(UIManager.java:1483)
at java.desktop/javax.swing.UIManager.getUI(UIManager.java:1056)
at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:126)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:86)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
at com.install4j.runtime.installer.frontend.FormPanel.<init>(FormPanel.java:50)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
at com.install4j.runtime.installer.Installer.main(Installer.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)



10. Re: Erro no SSH

leandro peçanha scardua
leandropscardua

(usa Ubuntu)

Enviado em 16/12/2020 - 19:36h

ricknyc escreveu:

Atualização sobre o erro.

Quando entrei no arquivo do SSH e comentei a linha 91
#FowardX11 


O serviço SSH voltou a funcionar.

Mas ainda não consigo efetuar a compilação do arquivo .bin
Que é o meu principal objetivo.

./aircontrol-v2.1-180316-1259-unix64.bin 
Starting Installer ...
Invalid MIT-MAGIC-COOKIE-1 keyjava.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:129)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:231)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:588)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:583)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:582)
at java.desktop/sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2212)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1096)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:440)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:150)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1560)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:587)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:629)
at java.desktop/javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1404)
at java.desktop/javax.swing.UIManager.initialize(UIManager.java:1517)
at java.desktop/javax.swing.UIManager.maybeInitialize(UIManager.java:1483)
at java.desktop/javax.swing.UIManager.getUI(UIManager.java:1056)
at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:126)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:86)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
at com.install4j.runtime.installer.frontend.FormPanel.<init>(FormPanel.java:50)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
at com.install4j.runtime.installer.Installer.main(Installer.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
An error occurred:
java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
Error log: /tmp/install4jError16860610929526502058.log
java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:129)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:231)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:588)
at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:583)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:582)
at java.desktop/sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2212)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1096)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:440)
at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:150)
at java.desktop/javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1560)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:587)
at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:629)
at java.desktop/javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1404)
at java.desktop/javax.swing.UIManager.initialize(UIManager.java:1517)
at java.desktop/javax.swing.UIManager.maybeInitialize(UIManager.java:1483)
at java.desktop/javax.swing.UIManager.getUI(UIManager.java:1056)
at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:126)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:86)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:109)
at java.desktop/javax.swing.JPanel.<init>(JPanel.java:117)
at com.install4j.runtime.installer.frontend.FormPanel.<init>(FormPanel.java:50)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
at com.install4j.runtime.installer.Installer.main(Installer.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)

Acho que essa linha deveria ser
X11Forwarding yes



11. Re: Erro no SSH

Pedro Lucas
pedrolucassec

(usa Arch Linux)

Enviado em 16/12/2020 - 19:58h

Não entendo muito mas dei uma pesquisada, vê se esse link te ajuda em algo
https://qastack.com.br/unix/199891/invalid-mit-magic-cookie-1-key-when-trying-to-run-program-remotel...







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts