Tag Archives: CentOS

Change SSH port in CentOS with SELinux

Since version 4 of CentOS, SELinux is providing an additional layer of security to the Linux distribution. As of SELinux in combination with sshd, changing the port or even listening on 2 ports is not as easy as just changing the sshd configuration file. Continue reading

Posted in Linux Administration, Security | Tagged , , | Comments Off on Change SSH port in CentOS with SELinux

yum – install package that contains a specific file

When i realised that the program to manage the SELinux rules is called “semanage” i tried to find a package of the same name in the yum repositories. But i could not find it. So i had to find it inside the yum repository. I am happy that yum provides an easy way to find a file that is provided within a package. Continue reading

Posted in Linux Administration, Security | Tagged , , , | Comments Off on yum – install package that contains a specific file

Setup Amazon AWS EC2 instance with CentOS

The Amazon AWS provide a so called Free Tier. This is a free subscription for all the AWS services for one year. It includes EC2 instance and EBS Volumes which is nice to test the AWS service. See details about the included services and there limitations at AWS Free Usage Tier. Continue reading

Posted in Linux Administration | Tagged , , , , , | Comments Off on Setup Amazon AWS EC2 instance with CentOS

Linux Partition layout with RAID1 and LVM

While installing CentOS you have to make a very important decision. The partition layout needs to be defined. The correct layout requires a understanding what the partitions are used for. As well, this step of the setup requires your decision if you plan to setup a RAID for your system partitions. Continue reading

Posted in Linux Administration | Tagged , , , | Comments Off on Linux Partition layout with RAID1 and LVM

Restrict Linux User to SCP to his home directory

You wanna give access to your server? But you want to restrict access to SCP/SFTP and to the user’s home directory. Here is how i configured an account restricted to SCP/SFTP only using jailkit on CentOS. Continue reading

Posted in Linux Administration, Security | Tagged , , , , , | Comments Off on Restrict Linux User to SCP to his home directory