Score:0

Do I need to restart my Debian after removing one key in authorized_keys?

sb flag

I removed a public key in authorized_keys for a computer that I've lost.

I have some servers running on the Debian and am afraid that a reboot would cause some trouble.

However, I can't verify whether the lost-computer can still log in via the key.

Am I all good now or do I still need a reboot?

I'm using Debian 10.

Score:2
za flag

You do not, regardless of the distro, version or even the operating system type. authorized_keys file contains SSH public key database for certain user and is not used in bootstrap sequence nor in multiuser boot routine.

You can even delete the whole file and it's absence will not break the boot up process.

Score:1
us flag

SSH daemon checks the authorized_keys while when a client SSH is connecting to it. Therefore the updates to the file are applied immediately.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.