Disable SSH key authentication

Hello Guys,

I need your help. I am trying to create a script to change password for multipls servers but having problem when it comes to ssh key authentication. Does anyone have a sample script that will disable ssh key authentication for multiple servers?:wink:

How about just using ssh -o PubkeyAuthentication=no hostname 'commands'? i.e. do it from the client, not the server-side daemon?

I already tried to ssh -o PubkeyAuthentication=no <hostname> but to no avail.

$ ssh -o PubkeyAuthentication=no <hostname>
warning: Configuration option PubkeyAuthentication is deprecated.
Host key not found from database.
Key fingerprint:
xucoc-tinaz-vimob-sotuz-fomaf-hidyt-ninag-metom-depib-sovub-kixux
You can get a public key's fingerprint by running
% ssh-keygen -F publickey.pub
on the keyfile.
Are you sure you want to continue connecting (yes/no)?

Ah, I thought you mean individual users' keys. Interesting that the option is deprecated... hmm.

Anyway, for host keys, try using StrictHostKeyChecking=no option perhaps. The error you are getting is unfamiliar to me though I have to admit... what version of SSH and under what OS?