Archive for the ‘centos’ Category

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

How to change the default port for the SSH user

December 8th, 2010 by @HKw@! | No Comments | Filed in centos, Fedora, Linux, RedHat

The default port for the SSH user is port 22. For a hacker to determine ssh is running on your machine, he’ll most likely scan port 22 to determine this. So, we better change our default port number to some other port. For instance, you want to run the ssh service on port 99 instead of 22

(more…)

Share

How to Setup User Password Expiration in Linux

August 19th, 2010 by @HKw@! | No Comments | Filed in centos, Fedora, Linux, RedHat, Ubuntu, Uncategorized

By default, most Linux distributions do not enable password aging. This means passwords do not expire and is it possible for a user to have the same password indefinitely. This situation is not secure. For security reasons, it is advisable to require users to change their passwords periodically.

Password aging is a mechanism that allows the system to enforce a certain lifetime for passwords. The chage command is used to modify password aging.

# chage [options] username (more...)

Share
BlogCatalog