Cheat Sheets

SSH - HashKnownHosts

Description

Checks /etc/ssh/ssh_config for HashKnownHosts yes

Check Script: ssh-hashknownhosts.sh

#!/bin/bash

if grep -q "HashKnownHosts yes" /etc/ssh/ssh_config 2>/dev/null; then result_ok else result_failed fi
Comment on Disqus