Skip to main content

Make SSH Ignore Key, When Logging On to a Fresh Box

Every now and then, I spin up a fresh vm.
And being a creature of habit, I use the same username on my play / experimental vms as my normal login.
So everytime I try to login to such a vm or pi, I get a Too many authentication failures error.

So to just get in and start working, I need to tell ssh to ignore my keys and try using passwords as the authentication mechanism.
Like so

ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no jason@ip-address-on-my-network

And then I can login and begin the process of locking everything down.