This guide assumes that you use Ubuntu or Debian-based GNU/Linux distro. There are two ways to change timezone from bash command line.
sudo dpkg-reconfigure tzdata
sudo ln -sf /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime
You can also specify other timezone in the second method, for example:
sudo ln -sf /usr/share/zoneinfo/GMT /etc/localtime
or for Eastern Standard Time (US)
sudo ln -sf /usr/share/zoneinfo/EST /etc/localtime
This command is handy when administrating multiple servers across different continents.
Allowing Secured Shell (SSH) remote login is a security risk for your system as it open up your computer to a host of malicious activities. One way to reduce the risk is to disallow root login from SSH, but that is not enough if there are a lot of users in your system and you only want a few of them to be able to login remotely to your server.
This post will detail how to allow or restrict certain users from SSH-ing to your server by editing /etc/ssh/sshd_config file.
DenyUsers / AllowUsers
Is used to allow or deny a number of users.
DenyUsers tom bob alice
AllowUsers mypapit johnmoffet
DenyGroups / AllowGroups
DenyGroups users ftpusers
AllowGroups wheel developers
Ensure that the file is properly saved and restart sshd server for the changes to take effect!
Recommended Books for Secured Shell (SSH) Security