cfg/bin/fix-ssh
2016-07-21 16:29:54 +02:00

6 lines
147 B
Bash
Executable File

#!/bin/bash
for host in $@; do
grep -v ${host} ~/.ssh/known_hosts > ~/.ssh/known_hosts.tmp && mv ~/.ssh/known_hosts.tmp ~/.ssh/known_hosts
done