blob: 78d9c3156bdecd0d6b4fa72a1f4e9a9110fe2ce4 (
plain)
1
2
3
4
5
6
7
|
#!/bin/bash
# Output filtered list of hostnames from known_hosts
cut -d\ -f1 ~/.ssh/known_hosts ~/.ssh/known_hosts_work | tr , "\n" \
| sed -r 's#(_ecdsa|_rsa|_ed25519|_dsa)$##' | sort -u \
| grep "$@"
|