Saturday, January 7, 2017

Linux Server Basics

1. Create User

useradd <username> && passwd <username>


>put password 

 usermod -aG wheel <username>

2.  Change date time
timedatectl set-timezone 'Australia/Sydney'

3. Linux version

cat /etc/*release

4. Disallow root logins over SSH

vi /etc/ssh/sshd_config

PermitRootLogin no

sudo systemctl restart sshd

Update the linux kernel after the VPS start

$> sudo yum update 

1 comment:

  1. Install and Configure CSF/LFD
    -----------------------------
    https://www.howtoforge.com/tutorial/install-and-configure-csf-config-server-firewall-on-centos-7/

    ReplyDelete