Entwicklungsumgebung/Dateiliste/sshd config

Aus Delixs
Zur Navigation springen Zur Suche springen


Diese Seite ist momentan eine Baustelle im Zustand: 1

Wird bearbeitet von: Schoffer
Hilfe zum Bearbeitungsstatus: Hilfe:Status eines Artikels


/etc/ssh/sshd_config

Achtung: Bitte achten Sie unbedingt darauf, beim Kopieren und Einfügen einen Editor mit UNIX-Zeilenumbrüchen zu verwenden!

Hinweis: Die im delixs-Schulserver geänderten Zeilen sind gelb unterlegt.



<source highlight="1,25-27" lang="text">

  1. delixs-Schulserver configuration file
  2. See the sshd(8) manpage for details
  1. What ports, IPs and protocols we listen for

Port 22

  1. Use these options to restrict which interfaces/protocols sshd will bind to
  2. ListenAddress ::
  3. ListenAddress 0.0.0.0

Protocol 2

  1. HostKeys for protocol version 2

HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key

  1. Privilege Separation is turned on for security

UsePrivilegeSeparation yes

  1. Lifetime and size of ephemeral version 1 server key

KeyRegenerationInterval 3600 ServerKeyBits 768

  1. Logging

SyslogFacility AUTH LogLevel INFO

  1. Authentication:

MaxAuthTries 4 LoginGraceTime 30 PermitRootLogin no StrictModes yes

RSAAuthentication yes PubkeyAuthentication yes

  1. AuthorizedKeysFile %h/.ssh/authorized_keys
  1. Don't read the user's ~/.rhosts and ~/.shosts files

IgnoreRhosts yes

  1. For this to work you will also need host keys in /etc/ssh_known_hosts

RhostsRSAAuthentication no

  1. similar for protocol version 2

HostbasedAuthentication no

  1. Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
  2. IgnoreUserKnownHosts yes
  1. To enable empty passwords, change to yes (NOT RECOMMENDED)

PermitEmptyPasswords no

  1. Change to yes to enable challenge-response passwords (beware issues with
  2. some PAM modules and threads)

ChallengeResponseAuthentication no

  1. Change to no to disable tunnelled clear text passwords
  2. PasswordAuthentication yes
  1. Kerberos options
  2. KerberosAuthentication no
  3. KerberosGetAFSToken no
  4. KerberosOrLocalPasswd yes
  5. KerberosTicketCleanup yes
  1. GSSAPI options
  2. GSSAPIAuthentication no
  3. GSSAPICleanupCredentials yes

X11Forwarding yes X11DisplayOffset 10 PrintMotd no PrintLastLog yes TCPKeepAlive yes

  1. UseLogin no
  1. MaxStartups 10:30:60
  2. Banner /etc/issue.net
  1. Allow client to pass locale environment variables

AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

UsePAM yes

</source>




zurück | Hauptseite