Basic Configuration
system {
host-name br1.example.net; # Device hostname
root-authentication { # Root account authentication settings
encrypted-password "$ENCRYPTED-PASSWORD-HASH"
ssh-ed25519 "$SSH-PUBLIC-KEY"
}
services { # Enabled services
ssh {
root-login allow; # Allow root login via SSH
protocol-version v2; # Only allow SSH version 2
}
}
time-zone Asia/Taipei; # Set local time zone
syslog { # System logging configuration
file interactive-commands {
interactive-commands any; # Log all interactive commands
}
file messages {
any notice; # Log notices for all facilities
authorization info; # Log authorization info messages
}
}
}Key Components Explained
Hostname
Authentication
Services
Time Zone
Syslog
Additional Recommended Settings
NTP (Network Time Protocol)
Login Banner
User Accounts
DNS Servers
SNMP for Monitoring
System Management
Last updated