cfg/bin/fix-ssh

6 lines
146 B
Text
Raw Permalink Normal View History

2016-07-21 13:48:49 +00:00
#!/bin/bash
for host in $@; do
grep -v ${host} ~/.ssh/known_hosts >~/.ssh/known_hosts.tmp && mv ~/.ssh/known_hosts.tmp ~/.ssh/known_hosts
2016-07-21 13:48:49 +00:00
done