Skip to content
Snippets Groups Projects
README.md 664 B
Newer Older
# awit-ssh Completion

If you want to use awit-ssh completion with zsh you first need to clean up your ~/.ssh/known_hosts file if it is hashed.

Run the follow and if you see any number other than zero, your ~/.ssh/known_hosts file is hashed

    grep -c '^|1|' ~/.ssh/known_hosts

Since you need the file unencrypted make a backup of ~/.ssh/known_hosts and then add the following lines to the top of ~/.ssh/config

    Host *
    HashKnownHosts no

Then delete the hashed lines

    sed -i '/^|1|/d' ~/.ssh/known_hosts

Going forward host names will be added in plain text. You'll be prompted to re-add the deleted hosts names as you log in to each server again.