[Solved] Failed to add the host to the list of known hosts on Ubuntu
I just recently started noticing that I couldn't add new host to the list of known hosts on my Ubuntu box and I was wondering what must have gone wrong. Anyway for documentation purposes, I ran below code on my terminal and it solved the issue. Hehehe
sudo chown -v $USER ~/.ssh/known_hosts
Hope this helps someone.