runv-server

server tooling for runv.club
Log | Files | Refs | README

sshd_match_entre_empty.conf.sample (1086B)


      1 # Exemplo — --auth-mode empty-password (omissão: keyboard-interactive + PAM)
      2 # Compatível com OpenSSH do Windows. Validar: sudo sshd -t && sudo systemctl reload ssh
      3 #
      4 # Shell em passwd: /bin/sh. Grupo suplementar típico: entre-open (+ PAM pam_succeed_if).
      5 
      6 Match User entre
      7     AuthenticationMethods keyboard-interactive
      8     PasswordAuthentication no
      9     KbdInteractiveAuthentication yes
     10     PubkeyAuthentication no
     11     PermitEmptyPasswords no
     12     ForceCommand /usr/bin/python3 /opt/runv/terminal/entre_app.py
     13     PermitTTY yes
     14     PermitUserRC no
     15     X11Forwarding no
     16     AllowAgentForwarding no
     17     AllowTcpForwarding no
     18     PermitTunnel no
     19     DisableForwarding yes
     20 
     21 # Variante README tilde (password + senha vazia): correr setup com
     22 #   --empty-password-tilde-password-auth
     23 # ou substituir o bloco Match por:
     24 #
     25 # Match User entre
     26 #     AuthenticationMethods password
     27 #     PasswordAuthentication yes
     28 #     KbdInteractiveAuthentication no
     29 #     PubkeyAuthentication no
     30 #     PermitEmptyPasswords yes
     31 #     ForceCommand /usr/bin/python3 /opt/runv/terminal/entre_app.py
     32 #     ...