Serviço do SSH não inicia no Fedora 27/Cent OS 7

1. Serviço do SSH não inicia no Fedora 27/Cent OS 7

Leandro Guedes
leanndroguedes

(usa Arch Linux)

Enviado em 11/12/2017 - 10:35h

Não consigo fazer funcionar o ssh no Fedora 27 e no Cent OS (Maquina Virtual).

$ sudo service ssh status
Redirecting to /bin/systemctl status ssh.service
Unit ssh.service could not be found.


Tentei reinstalar os pacotes openssh-server e openssh-clients, e ainda não consigo fazer funcionar.
Também tentei habilitar e iniciar o serviço:

$ sudo systemctl enable sshd.service
$ sudo systemctl start sshd.service

mas não deu resultado.


  


2. Serviço do SSH não inicia no Fedora 27/Cent OS 7

Felipe Souza Valim
slack_history

(usa Ubuntu)

Enviado em 11/12/2017 - 11:13h


Verifique se tem algum serviço já em execução do ssh :

ps aux | grep ssh


Depois verifique se o arquivo do systemctl está correto :

Exemplo :
vi /usr/lib/systemd/system/sshd.service

[Unit]
Description=OpenSSH server daemon
Documentation=man:sshd(8) man:sshd_config(5)
After=network.target sshd-keygen.service
Wants=sshd-keygen.service

[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/sshd
ExecStart=/usr/sbin/sshd -D $OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=42s

[Install]
WantedBy=multi-user.target



3. Re: Serviço do SSH não inicia no Fedora 27/Cent OS 7

Leandro Guedes
leanndroguedes

(usa Arch Linux)

Enviado em 11/12/2017 - 11:33h

Vlw!
Mas simplesmente começou a funcionar \0/ :3






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts