Archive for the ‘RedHat’ Category

How to change the timezone on CentOS/RHEL

May 23rd, 2011 by @HKw@! | No Comments | Filed in centos, Fedora, RedHat

I noticed that my Centos Server logs is not on the correct time. I tried to check the time from the command line and found that the timezone is pointing to the wrong timezone

root@thundercat ~]# date
Mon May 23 00:21:56 EDT 2011

How to change it? There are two ways to change the timezone on CentOS. (more…)

Share

How to limit SSH access by IP Address

May 9th, 2011 by @HKw@! | No Comments | Filed in centos, Debian, Fedora, Linux, RedHat, Ubuntu
To Secure your Linux server and prevent attacks, you can limit SSHd to certain IP addresses by modify the /etc/hosts.allow and /etc/host.deny files

Below are the few steps :-

1) Open /etc/hosts.allow

Use the following command to open the hosts.allow file:

vi /etc/hosts.allow

Once this file is open, add the following line:

SSHD : ipaddress : ALLOW

2) Open /etc/hosts.deny

Use the following command to open the hosts.deny file:

vi /etc/hosts.deny

Once it opens, add the following line to the file:

SSHD : ALL : DENY

Save and exit, and you have successfully limited SSH access by IP address.

Share

How to update OpenSSH via Yum Centos/RedHat

February 16th, 2011 by @HKw@! | No Comments | Filed in centos, Fedora, Linux, RedHat

It is easy to update your SSH via yum. To do so, simply SSH into your linux server. Once logged in, type the the following;

#yum update openssh

This will update the openssh process, openssh-clients and openssh-server.

To verify what version of openssh you are running, you can type the following commend;

#ssh -V

Your server will then reply back with the version;

[root@XXXXXXX ~]# ssh -V
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

Share
BlogCatalog