2018-08-26 04:26:11 -06:00
|
|
|
#######
|
|
|
|
### OpenSSH Configuration
|
|
|
|
#######
|
|
|
|
|
|
|
|
### Connection settings
|
|
|
|
Port 222
|
|
|
|
ListenAddress your.private.ipv4.address
|
|
|
|
ListenAddress [your:private:ipv6:address:use:square:brackets]
|
|
|
|
TCPKeepAlive no
|
|
|
|
ClientAliveInterval 60
|
|
|
|
ClientAliveCountMax 30
|
2018-11-25 05:11:12 -07:00
|
|
|
Protocol 2
|
2018-08-26 04:26:11 -06:00
|
|
|
|
|
|
|
### Authentication settings
|
2019-01-02 00:26:50 -07:00
|
|
|
HostKey /etc/ssh/ed25519.key
|
|
|
|
HostKey /etc/ssh/RSA4096.key
|
2019-01-01 22:58:43 -07:00
|
|
|
#PasswordAuthentication no
|
|
|
|
PasswordAuthentication yes
|
2018-08-26 04:26:11 -06:00
|
|
|
PermitEmptyPasswords no
|
|
|
|
ChallengeResponseAuthentication no
|
|
|
|
UsePAM yes
|
|
|
|
AuthorizedKeysFile .ssh/authorized_keys
|
|
|
|
|
|
|
|
### Login settings
|
|
|
|
LoginGraceTime 1M
|
|
|
|
MaxAuthTries 3
|
|
|
|
MaxSessions 5
|
2019-01-01 22:58:43 -07:00
|
|
|
#PermitRootLogin no
|
|
|
|
PermitRootLogin yes
|
2018-08-26 04:26:11 -06:00
|
|
|
|
|
|
|
### Program settings
|
|
|
|
Banner /etc/ssh/banner
|
|
|
|
LogLevel VERBOSE
|
|
|
|
X11Forwarding yes
|
|
|
|
PrintMotd no
|
2018-11-25 05:11:12 -07:00
|
|
|
PrintLastLog yes
|
2018-08-26 04:26:11 -06:00
|
|
|
AcceptEnv LANG LC_*
|
|
|
|
Subsystem sftp /usr/lib/openssh/sftp-server
|