瀏覽代碼

Update the nukehost function.

master
Mitchell Tishmack 6 年之前
committed by Mitch Tishmack
父節點
當前提交
a94703a3e0
共有 1 個文件被更改,包括 3 次插入 和 6 次删除
  1. +3
    -6
      dotprofile.org

+ 3
- 6
dotprofile.org 查看文件

@@ -94,12 +94,9 @@ push_env()
# host key changes.
nukehost()
{
if [ -z "$1" ]; then
echo "Usage: nukehost <hostname>"
echo " Removes <hostname> from ssh known_host file."
else
sed -i -e "/$1/d" ~/.ssh/known_hosts
fi
for x in $(echo $*); do
sed -i -e "/$x/d" ~/.ssh/known_hosts
done
}

# Cheap copy function to make copying a file via ssh from one host


Loading…
取消
儲存