Linux to achieve SSH password-free remote access server

Linux to achieve SSH password-free remote access server


Usually use SSH login remote server, you need to use the input password, hoping to achieve through the key login and exemption from the input password, which can be achieved for the future batch automatic deployment of the host to prepare.

The environment is as follows:


docker on Centos 7

Install Docker

[root@clusterserver3 /]# yum -y install docker Loaded plugins: fastestmirror base                                                                                                                                                                      | 3.6 kB  00:00:00 extras                                                                                                                                                                    | 3.4 kB  00:00:00 updates                                                                                                                                                                   | 3.4 kB  00:00:00 Loading mirror speeds from cached hostfile * base: * extras: * updates: Resolving Dependencies –> Running transaction check —> Package docker.x86_64 0:1.8.2-10.el7.centos will be installed –> […]

Counting number of users in a group – Linux

Counting number of users in a group – Linux

Here is a small command to find number of users in particular group on a *nix system. An example for wheel group:

grep wheel /etc/group | fgrep -o , | wc -m

Now here’s a catch, this command actually counts the commas in the line from […]

Redis test

$ make test You need tcl 8.5 or newer in order to run the Redis test make: *** [test]

rpm -qa | grep tcl

yum install tcl


Technically at the moment there isn’t anything really wrong with the SHA-1 hash function, but it is now quite old and is starting to show potential cracks. Hence the reason that the security industry is advising to move to something better. In this case SHA-256.

1. Generate a SSL Key File

Firstly you will need […]

Boot Partition Full ( CentOS 7 )

Boot Partition Full ( CentOS 7 )

root@RHEL7HARDEN:~# df -h

Filesystem            Size  Used Avail Use% Mounted on /dev/mapper/vg0-root   96G   15G   77G  16% / devtmpfs              3.8G     0  3.8G   0% /dev tmpfs                 3.8G  152K  3.8G   1% /dev/shm tmpfs                 3.8G  9.1M  3.8G   1% /run tmpfs                 3.8G     0  3.8G   0% /sys/fs/cgroup /dev/sda1             283M  270M     0 100% /boot /dev/mapper/vg0-home  577G  […]

Verify Package Integrity Using RPM

Verify Package Integrity Using RPM

The RPM package management system includes the ability to verify the integrity of installed packages by comparing the installed files with information about the files taken from the package metadata stored in the RPM database.

Although an attacker could corrupt the RPM database (analogous to attacking the AIDE database […]

Remount the /dev/shm Partition in Fedora/CentOS

Remount the /dev/shm Partition in Fedora/CentOS This is to assist with a CSF warning you may receive about /dev/shm being incorrectly mounted, simply run the following:

nano /etc/fstab

Replace this line:

tmpfs /dev/shm tmpfs defaults 0 0

With this one:

tmpfs /dev/shm tmpfs defaults,noexec,nosuid 0 0

Save & Exit nano, then remount using the following […]

Bloging on Open Source,Linux,BSD and Internet World What is /dev/shm and how to mount /dev/shm

What is /dev/shm and how to mount /dev/shm

Introduction: /dev/shm is nothing but implementation of traditional shared memory concept. It is an efficient means of passing data between programs. One program will create a memory portion, which other processes (if permitted) can access. This will result into speeding up things on Linux. shm / shmfs […]

mount s3 bucket in linux EC2 instance

if you have not created a s3 bucket kindly go through with EC2 documentation.The documentation is very clear and easy to understand .This is the link how to create S3bucket

After creating a new bucket follow the given below steps.

Step 1: Download the latest s3fs package from S3fs link

Step 2: Untar the […]

Page 1 of 1912345...10...Last »