Professional Documents
Culture Documents
2nd Set of Tasks
2nd Set of Tasks
2nd Set of Tasks
Linux Servers
Ricardo Cabete
1. Configure SSH daemon so that only regular user (not root) can make a remote login. You can get SSH configuration information from command line with command man sshd_config. $ apt-get install ssh $ nano /etc/ssh/sshd_config [change line 'PermitRootLogin' to no] 2. Restart SSHD and test your new configurations. Take ssh connection to your server and login as regular user. Try also login as root -user. $ service ssh restart [Tests can be made with Putty or any other client] 3. Give your server some good name (for example nagios.lns-servers.com) and add the name into Optima. $ hostname debian.local 4. Log all kernel messages to /var/log/kernel file (/etc/syslog.conf). $ nano /etc/rsyslog.conf [changed line 'kern.*' to -/var/log/kernel] 5. Reload syslog service and check that /var/log/kernel file exists! $ service rsyslog restart $ cat /var/log/kernel 6. Change settings for the server to keep 52 weeks worth of backlogs (/etc/logrotate.conf). $ nano /etc/logrotate.conf [change line 'rotate 4' to 'rotate 52']