Last active
December 20, 2015 08:09
-
-
Save jefflunt/6098923 to your computer and use it in GitHub Desktop.
Sample SSH config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# What ports, IPs and protocols we listen for | |
Port 22 | |
Protocol 2 | |
# HostKeys for protocol version 2 | |
HostKey /etc/ssh/ssh_host_rsa_key | |
HostKey /etc/ssh/ssh_host_dsa_key | |
HostKey /etc/ssh/ssh_host_ecdsa_key | |
UsePrivilegeSeparation yes | |
# Logging & compression | |
SyslogFacility AUTH | |
LogLevel INFO | |
Compression yes | |
# Authentication: | |
LoginGraceTime 120 | |
PermitRootLogin no | |
StrictModes yes | |
RSAAuthentication yes | |
PubkeyAuthentication yes | |
AuthorizedKeysFile .ssh/authorized_keys | |
PasswordAuthentication no | |
PermitEmptyPasswords no | |
UsePAM no | |
ChallengeResponseAuthentication no | |
KerberosAuthentication no | |
GSSAPIAuthentication no | |
GSSAPICleanupCredentials yes | |
RhostsRSAAuthentication no | |
IgnoreRhosts yes | |
HostbasedAuthentication no | |
IgnoreUserKnownHosts no | |
# Allow client to pass locale environment variables | |
AcceptEnv LANG LC_* | |
PermitUserEnvironment no | |
X11Forwarding no | |
PrintMotd no | |
PrintLastLog yes | |
TCPKeepAlive yes | |
UseLogin no | |
Subsystem sftp /usr/lib/openssh/sftp-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment