diff --git a/ussh b/ussh index fb119d8..5af2b5e 100755 --- a/ussh +++ b/ussh @@ -156,6 +156,9 @@ elif [ "$action" == "remove" ]; then etitle "Suppression des entrées dans ~/.ssh/known_hosts" allhosts=("${hosts[@]}") for host in "${allhosts[@]}"; do + splituserhost "$host" user host + [[ "$host" == *.* ]] || host="$host${domain:+.$domain}" + if ipcalc_checkip "$host" >/dev/null; then ip="$host" remove "$ip"