Howtos / Articles

How To Disable root Logins Over SSH on CentOS

Most Linux distributions allow the root user to connect in via SSH, and CentOS is no exception. It is recommended that root logins are never used, and you should use either su or sudo to elevate the permissions of a normal user account. As such, the best option is to disable root logins in the SSH server configuration file. Note: these commands should be run as a user with root privileges (sudo or su), or from the console as root.…

Read more [...]

How To Disable IPv6 on CentOS

A default install of CentOS will enable IPv6 connectivity. If you don’t need IPv6, there is no need to have it enabled. Follow the steps below to disable IPv6 on a CentOS install. Note: Run these commands as a user with root privileges. Check to see if you’re installation is currently set up for IPv6: # cat /proc/sys/net/ipv6/conf/all/disable_ipv6 If the output is 0, IPv6 is enabled.
If the output is 1, IPv6 is already disabled. Edit the /etc/sysctl.conf file to…

Read more [...]

Updating CentOS with the YUM package manager

Updating the software running on a operating system is an important part of maintaining a computer. Not only does it allow you to keep up to date with the latest features in the applications you use, it is also crucial to keep your system as secure as possible. The YUM (Yellowdog Updater Modified) package management tools makes installing/updating/removing packages extremely simple. Run the one of the following command to update all packages: If logged in as root: # yum update…

Read more [...]

Setting a static IP address in CentOS

During a default install of CentOS it will try to either automatically obtain an IP address using DHCP, or it wont even set up the network interface automatically. While that may be fine for most desktop users, if you are wanting to set up a server, the chances are you will be wanting it to always have the same IP address. There are two options for ensuring you get/use the same IP address at every boot. You could set up…

Read more [...]

Page 3 of 3123