Category Archives: Security

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

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

Subversion via ssh using authorized_keys

When i used subversion in the past i created a separate user on the linux operating system. This user then got the right to login via ssh to use subversion. If you have one or two users to manage that is not a big deal. But when the amount of users is growing … Continue reading

Posted in Linux Administration, Security, Version control system | Tagged , , , | Comments Off on Subversion via ssh using authorized_keys

SSH remote host identification has changed

You might know the situation when you try to login to a server via ssh and instead of the console you get the “REMOTE HOST IDENTIFICATION HAS CHANGED” Warning. Here is how to deal with it. Continue reading

Posted in Linux Administration, Security | Tagged | Comments Off on SSH remote host identification has changed

The NSA and HTTPS facebook privacy

It seems to be a big discussion about US government agencies, like the NSA, accessing user data from Google and Facebook. As of this i got asked how that can be a problem as the HTTPS is secure anyway. I would like to explain here what the difference is between HTTPS and privacy! … Continue reading

Posted in Security | Tagged , , , | Comments Off on The NSA and HTTPS facebook privacy