dotfiles/.config/fish/functions/sshre.fish

18 lines
397 B
Fish
Raw Permalink Normal View History

2022-04-01 20:50:03 +00:00
function sshre -d 'Remove list of hosts from ssh known_hosts'
alias ssh-rm 'ssh-keygen -f ~/.ssh/known_hosts -R'
set -l hosts 10.0.0.1 10.0.0.5 git.mjfs.us dns cloud net git
2022-04-01 20:50:03 +00:00
set -l domains lan m
if test -n "$argv"
set hosts $argv
end
for host in $hosts
ssh-rm $host
for domain in $domains
ssh-rm $host.$domain
end
end
end