ipdetecto.com logo
ipdetecto.com
My IPSpeed
Knowledge Hub
HomeKnowledge HubLinux Security Commands
© 2026 ipdetecto.com
support@ipdetecto.comAboutContactPrivacyTermsllms.txt
Privacy & Security
5 MIN READ
Apr 19, 2026

Linux Security Commands

Audit configuration and harden hosts: sshd -T, sysctl, aide/rpm -V, journalctl signatures, and login tracking.

Security work blends visibility and control. sshd -T prints effective SSH daemon settings—compare with disk files after includes. sysctl reads kernel tunables like IP forwarding and rp_filter. Integrity tools (aide, rpm -V, debsums) detect changed binaries. last and lastb show logins; faillock surfaces lockouts on PAM systems. Pair with firewall review from nft list ruleset.

AreaCommandInsight
SSHsshd -T | grep -i permitConfirm root login and password policy
Kernelsysctl -a | grep forwardSpot unintended routing
Authlast -aiSee remote IPs and times

Related

SSH commands, firewall commands, sudo, users and permissions

Frequently Asked Questions

Q.Why run sshd -T instead of only reading sshd_config?

It resolves defaults and included snippets to the effective runtime values actually enforced.

Q.What does sysctl net.ipv4.ip_forward control?

Whether the kernel routes IPv4 between interfaces—should stay off on non-router hosts.

Q.How does AIDE differ from rpm -V?

AIDE hashes filesystem baselines broadly; rpm -V verifies against package metadata for managed files.

Q.Where are failed SSH attempts logged?

Often in journald or /var/log/auth.log depending on distro—grep for sshd with journalctl.

Q.What is auditd used for?

Kernel-backed audit rules for syscalls and file access—heavy but detailed for compliance.

Q.How can I list listening services securely?

Use ss -ltnp as an unprivileged user for ports; escalate to map PIDs to packages.

Q.Why verify sudoers with visudo?

visudo locks and syntax-checks sudoers—direct edits risk locking everyone out on error.

Q.What does umask have to do with security?

A permissive umask creates world-readable files—tighten defaults for multi-user systems.
TOPICS & TAGS
linux hardeningsshdsysctlauditdaide