If you're using Homestead Vagrant...
Here is how I got myself out of this pickle.
(Using Git Bash on Windows 10)
mv ~/.ssh/known_hosts ~/.ssh/known_hosts_OLD ssh [email protected] -p 2222 mv ./.bashrc ./.bashrc_OLD cd ../Homestead/ mv ~/.ssh/known_hosts ~/.ssh/known_hosts_OLD ssh [email protected] -p 2222 mv ./.bashrc ./.bashrc_OLD Note: the default password is "vagrant"
These articles helped me: