I had setup password-less SSH login from my desktop to my laptop following the steps here. Now I want to turn off the password-less login so that when I ssh from my desktop to my laptop, it will ask for the password. How do I do it?
Ubuntu – how to turn off password-less login for ssh
loginpasswordserverssh
Best Answer
Disable pubkey authentication on the client where you don't want to use it.
or in your
~/.ssh/config
:If you want to remove the public key from the server, you need to remove the appropriate line from
~/.ssh/authorized_keys
on server.