Daemon sshd não inicia

0

daemon sshd não está mais iniciando. Eu postei um pouco, espero que alguém forneça alguma ajuda, por favor.

[root@goautodial-7 ssh]# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-07-22 20:43:53 CEST; 50min ago
     Docs: man:sshd(8)
           man:sshd_config(5)
  Process: 3656 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=255)
 Main PID: 3656 (code=exited, status=255)
   CGroup: /system.slice/sshd.service
           ├─ 3669 sshd: root@pts/8
           ├─ 3675 -bash
           └─10702 systemctl status sshd

Jul 22 20:42:29 goautodial-7 sshd[3669]: error: Bad prime description in line 299
Jul 22 20:42:29 goautodial-7 sshd[3669]: error: Bad prime description in line 300
Jul 22 20:42:29 goautodial-7 sshd[3669]: error: Bad prime description in line 301
Jul 22 20:42:33 goautodial-7 sshd[3669]: Accepted password for root from 178.148.10.215 port 54228 ssh2
Jul 22 20:43:53 goautodial-7 systemd[1]: sshd.service start operation timed out. Terminating.
Jul 22 20:43:53 goautodial-7 systemd[1]: sshd.service: main process exited, code=exited, status=255/n/a
Jul 22 20:43:53 goautodial-7 systemd[1]: Failed to start OpenSSH server daemon.
Jul 22 20:43:53 goautodial-7 systemd[1]: Unit sshd.service entered failed state.
Jul 22 20:43:53 goautodial-7 systemd[1]: sshd.service failed.
Jul 22 21:06:29 goautodial-7 yum[7006]: Installed: 2:nmap-ncat-6.40-7.el7.x86_64

ss -p -l -t

[root@goautodial-7 ssh]# ss -p -l -t
State       Recv-Q Send-Q                           Local Address:Port                                            Peer Address:Port
LISTEN      0      50                                           *:mysql                                                      *:*                     users:(("mysqld",pid=937,fd=14))
LISTEN      0      10                                           *:5038                                                       *:*                     users:(("asterisk",pid=1550,fd=6))
LISTEN      0      2                                            *:sieve-filter                                               *:*                     users:(("asterisk",pid=1550,fd=11))
LISTEN      0      100                                  127.0.0.1:smtp                                                       *:*                     users:(("master",pid=1010,fd=13))
LISTEN      0      128                                          *:4577                                                       *:*                     users:(("FastAGI_log.pl",pid=7864,fd=3),("FastAGI_log.pl",pid=2515,fd=3),("FastAGI_log.pl",pid=2513,fd=3),("FastAGI_log.pl",pid=2512,fd=3),("FastAGI_log.pl",pid=2511,fd=3),("FastAGI_log.pl",pid=2481,fd=3))
LISTEN      0      20                                   127.0.0.1:borland-dsj                                                *:*                     users:(("goautodiald.pl",pid=2457,fd=3))
LISTEN      0      128                                         :::http                                                      :::*                     users:(("httpd",pid=3748,fd=4),("httpd",pid=3747,fd=4),("httpd",pid=3743,fd=4),("httpd",pid=3742,fd=4),("httpd",pid=3715,fd=4),("httpd",pid=843,fd=4),("httpd",pid=842,fd=4),("httpd",pid=838,fd=4),("httpd",pid=835,fd=4),("httpd",pid=834,fd=4),("httpd",pid=489,fd=4))
LISTEN      0      100                                        ::1:smtp                                                      :::*                     users:(("master",pid=1010,fd=14))
LISTEN      0      128                                         :::https                                                     :::*                     users:(("httpd",pid=3748,fd=6),("httpd",pid=3747,fd=6),("httpd",pid=3743,fd=6),("httpd",pid=3742,fd=6),("httpd",pid=3715,fd=6),("httpd",pid=843,fd=6),("httpd",pid=842,fd=6),("httpd",pid=838,fd=6),("httpd",pid=835,fd=6),("httpd",pid=834,fd=6),("httpd",pid=489,fd=6))

pgrep sshd

[root@goautodial-7 ssh]# pgrep sshd
3669

netstat -tap

[root@goautodial-7 ssh]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:mysql           0.0.0.0:*               LISTEN      937/mysqld
tcp        0      0 0.0.0.0:5038            0.0.0.0:*               LISTEN      1550/asterisk
tcp        0      0 0.0.0.0:sieve-filter    0.0.0.0:*               LISTEN      1550/asterisk
tcp        0      0 localhost:smtp          0.0.0.0:*               LISTEN      1010/master
tcp        0      0 0.0.0.0:4577            0.0.0.0:*               LISTEN      2481/perl
tcp        0      0 localhost:borland-dsj   0.0.0.0:*               LISTEN      2457/perl
tcp        0      0 localhost:5038          localhost:41584         TIME_WAIT   -
tcp        0      0 localhost:5038          localhost:41178         ESTABLISHED 1550/asterisk
tcp        0     52 45.32.233.208.vultr:ssh cable-178-148-10-:54228 ESTABLISHED 3669/sshd: root@pts
tcp        0      0 localhost:41178         localhost:5038          ESTABLISHED 2469/perl
tcp        0      0 localhost:5038          localhost:41586         TIME_WAIT   -
tcp        0      0 localhost:5038          localhost:41588         TIME_WAIT   -
tcp        0      0 localhost:5038          localhost:41180         ESTABLISHED 1550/asterisk
tcp        0      0 localhost:41180         localhost:5038          ESTABLISHED 2463/perl
tcp6       0      0 [::]:http               [::]:*                  LISTEN      489/httpd
tcp6       0      0 localhost:smtp          [::]:*                  LISTEN      1010/master
tcp6       0      0 [::]:https              [::]:*                  LISTEN      489/httpd

nc -v localhost 22

[root@goautodial-7 ssh]# nc -v localhost 22
Ncat: Version 6.40 ( http://nmap.org/ncat )
Ncat: Connection to ::1 failed: Connection refused.
Ncat: Trying next address...
Ncat: Connection refused.
    
por Giovanni De Stefanis 22.07.2017 / 21:39

0 respostas

Tags