ssh
- how to check ssh host key finger print
[root@localhost ssh]# ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub
2048 xx:xx:xx:xx:xx /etc/ssh/ssh_host_rsa_key.pub (RSA)
TCP wrapper
- how to check tcp wrapper is used in CentOS 6
[root@localhost etc]# ldd /usr/sbin/sshd | grep -i wrap
libwrap.so.0 => /lib64/libwrap.so.0 (0x00007fdb92f99000)
awk
- print "line 1" OR "column 3 has 'LINUX' strings".
awk 'NR == 1 || $3 ~ /LINUX/'