+ Responder ao Tópico



  1. #1

    Padrão ssh o que pode ser?

    Olá pessoal, o ssh está travando do nada.

    Estou terminando a configuração de um servidor, porém nunca deparei com este problema.

    O problema é o seguinte: assim que logo, o ssh trava após alguns minutos..

    Estou terminando de configurar alguns serviços neste servidor, e estou numa lan local.


    Não estou tendo perda de pacotes!

    Config do ssh

    Port 2230
    Protocol 2
    #AddressFamily any
    ListenAddress 0.0.0.0
    #ListenAddress ::

    # HostKey for protocol version 1
    HostKey /etc/ssh/ssh_host_key
    #HostKeys for protocol version 2
    HostKey /etc/ssh/ssh_host_rsa_key
    #HostKey /etc/ssh/ssh_host_dsa_key

    # Lifetime and size of ephemeral version 1 server key
    KeyRegenerationInterval 3600
    ServerKeyBits 768

    # Logging
    # obsoletes QuietMode and FascistLogging
    #SyslogFacility AUTH
    #LogLevel INFO

    # Authentication:

    LoginGraceTime 2m
    PermitRootLogin no
    StrictModes yes
    MaxAuthTries 6


    # Don't read the user's ~/.rhosts and ~/.shosts files
    IgnoreRhosts yes

    # To disable tunneled clear text passwords, change to no here!
    #PasswordAuthentication yes
    PermitEmptyPasswords no

    # Change to no to disable s/key passwords
    #ChallengeResponseAuthentication yes

    # Kerberos options
    #KerberosAuthentication no
    #KerberosOrLocalPasswd yes
    #KerberosTicketCleanup yes
    #KerberosGetAFSToken no

    #AllowTcpForwarding yes
    #GatewayPorts no
    #X11Forwarding no
    #X11DisplayOffset 10
    #X11UseLocalhost yes
    #PrintMotd yes
    #PrintLastLog yes
    #TCPKeepAlive yes
    #UseLogin no
    #UsePrivilegeSeparation yes
    #PermitUserEnvironment no
    #Compression delayed
    #ClientAliveInterval 0
    #ClientAliveCountMax 3
    #UseDNS yes
    #PidFile /var/run/sshd.pid
    #MaxStartups 10
    # no default banner path
    #Banner /some/path

    # override default of no subsystems
    Subsystem sftp /usr/libexec/sftp-server


    OBS:
    Sempre usei está conf. e nunca tive problema.
    Slack 12
    Miniaturas de Anexos Miniaturas de Anexos Clique na imagem para uma versão maior

Nome:	         ssh_erro.jpg
Visualizações:	137
Tamanho: 	42,2 KB
ID:      	1557  

  2. #2

    Padrão

    quando trava.. se vc tentar logar novamente.. ele loga ??

    se sim.. procure nos LOGs alguma mensagem de erro..

    tenta comentar estas linhas aqui:
    Código :
    # Lifetime and size of ephemeral version 1 server key
    # KeyRegenerationInterval 3600
    # ServerKeyBits 768
     
     
    # LoginGraceTime 2m
     
     
    # StrictModes yes


    reinicie o ssh e veja se vai mudar alguma coisa...

  3. #3

    Padrão

    Fazendo testes no kernel, acabei descobrindo que o problema está na patch imq que apliquei. Quando removo o módulo imq do kernel a conexão ssh fica normal.