fi
function ssh-forget() {
- sed -i "" "/^$1,/d" ~/.ssh/known_hosts
+ sed -i "" "/^$1[, ]/d" ~/.ssh/known_hosts
}
function ssh-learn() {
- sed -i "" "/^$1,/d" ~/.ssh/known_hosts
+ sed -i "" "/^$1[, ]/d" ~/.ssh/known_hosts
ssh-keyscan -t rsa $1 >> ~/.ssh/known_hosts
}