1 | # Package generated configuration file |
---|
2 | # See the sshd_config(5) manpage for details |
---|
3 | |
---|
4 | # What ports, IPs and protocols we listen for |
---|
5 | Port 22 |
---|
6 | # Use these options to restrict which interfaces/protocols sshd will bind to |
---|
7 | #ListenAddress :: |
---|
8 | #ListenAddress 0.0.0.0 |
---|
9 | Protocol 2 |
---|
10 | # HostKeys for protocol version 2 |
---|
11 | HostKey /etc/ssh/ssh_host_rsa_key |
---|
12 | HostKey /etc/ssh/ssh_host_dsa_key |
---|
13 | |
---|
14 | # Logging |
---|
15 | SyslogFacility AUTH |
---|
16 | LogLevel INFO |
---|
17 | |
---|
18 | # Authentication: |
---|
19 | LoginGraceTime 120 |
---|
20 | PermitRootLogin yes |
---|
21 | StrictModes yes |
---|
22 | |
---|
23 | PubkeyAuthentication yes |
---|
24 | #AuthorizedKeysFile %h/.ssh/authorized_keys |
---|
25 | |
---|
26 | # Don't read the user's ~/.rhosts and ~/.shosts files |
---|
27 | IgnoreRhosts yes |
---|
28 | # similar for protocol version 2 |
---|
29 | HostbasedAuthentication no |
---|
30 | # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication |
---|
31 | #IgnoreUserKnownHosts yes |
---|
32 | |
---|
33 | # To enable empty passwords, change to yes (NOT RECOMMENDED) |
---|
34 | PermitEmptyPasswords no |
---|
35 | |
---|
36 | # Change to yes to enable challenge-response passwords (beware issues with |
---|
37 | # some PAM modules and threads) |
---|
38 | ChallengeResponseAuthentication no |
---|
39 | |
---|
40 | # Change to no to disable tunnelled clear text passwords |
---|
41 | #PasswordAuthentication yes |
---|
42 | |
---|
43 | # Kerberos options |
---|
44 | #KerberosAuthentication no |
---|
45 | #KerberosGetAFSToken no |
---|
46 | #KerberosOrLocalPasswd yes |
---|
47 | #KerberosTicketCleanup yes |
---|
48 | |
---|
49 | # GSSAPI options |
---|
50 | #GSSAPIAuthentication no |
---|
51 | #GSSAPICleanupCredentials yes |
---|
52 | |
---|
53 | X11Forwarding yes |
---|
54 | X11DisplayOffset 10 |
---|
55 | PrintMotd no |
---|
56 | PrintLastLog yes |
---|
57 | TCPKeepAlive yes |
---|
58 | #UseLogin no |
---|
59 | |
---|
60 | #MaxStartups 10:30:60 |
---|
61 | #Banner /etc/issue.net |
---|
62 | |
---|
63 | # Allow client to pass locale environment variables |
---|
64 | AcceptEnv LANG LC_* |
---|
65 | |
---|
66 | Subsystem sftp /usr/lib/openssh/sftp-server |
---|
67 | |
---|
68 | # Set this to 'yes' to enable PAM authentication, account processing, |
---|
69 | # and session processing. If this is enabled, PAM authentication will |
---|
70 | # be allowed through the ChallengeResponseAuthentication and |
---|
71 | # PasswordAuthentication. Depending on your PAM configuration, |
---|
72 | # PAM authentication via ChallengeResponseAuthentication may bypass |
---|
73 | # the setting of "PermitRootLogin without-password". |
---|
74 | # If you just want the PAM account and session checks to run without |
---|
75 | # PAM authentication, then enable this but set PasswordAuthentication |
---|
76 | # and ChallengeResponseAuthentication to 'no'. |
---|
77 | UsePAM yes |
---|