Initial commit: VaultMesh Skills collection
Collection of operational skills for VaultMesh infrastructure including: - backup-sovereign: Backup and recovery operations - btc-anchor: Bitcoin anchoring - cloudflare-tunnel-manager: Cloudflare tunnel management - container-registry: Container registry operations - disaster-recovery: Disaster recovery procedures - dns-sovereign: DNS management - eth-anchor: Ethereum anchoring - gitea-bootstrap: Gitea setup and configuration - hetzner-bootstrap: Hetzner server provisioning - merkle-forest: Merkle tree operations - node-hardening: Node security hardening - operator-bootstrap: Operator initialization - proof-verifier: Cryptographic proof verification - rfc3161-anchor: RFC3161 timestamping - secrets-vault: Secrets management 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
23
node-hardening/checks/check_ssh.sh
Executable file
23
node-hardening/checks/check_ssh.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if [[ ! -f /etc/ssh/sshd_config ]]; then
|
||||
echo "sshd_config: missing"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if grep -Eq '^PasswordAuthentication\s+no' /etc/ssh/sshd_config; then
|
||||
echo "ssh: password auth disabled"
|
||||
else
|
||||
echo "ssh: password auth not disabled"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if grep -Eq '^PermitRootLogin\s+no' /etc/ssh/sshd_config; then
|
||||
echo "ssh: root login disabled"
|
||||
else
|
||||
echo "ssh: root login not disabled"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user