Securing Linux SSH
~~~shell
$ sudo vi /etc/ssh/sshd_config
Just think about micro things
~~~shell
$ sudo vi /etc/ssh/sshd_config
To change DNS from command line: dnscmd
If dhcp server assign ip based on MAC, Fedora 24 client can’t get the right IP.
~~~shell
$ sudo dnf install http://download.zfsonlinux.org/fedora/zfs-release$(rpm -E %dist).noarch.rpm
By default, Network Manager always changes the resolv.conf file if the interface is using DHCP. The NetworkManger puts the records from DHCP server on top and the customize DNS servers at bottom. It causes private DNS setting cannot be found. To fix it, just change the PEERDNS=no in /etc/sysconfig/network-scripts/ifcfg-eth0 and restart network
<?prettify linenums=true?>
~~~shell
systemctl status firewalld
Scenario: Master server had a problem and was gone. Promote slave 1 as a master server.
When backup database, don’t use option –databases. It will create use database command.