L
L
lxfr2017-04-21 12:57:36
linux
lxfr, 2017-04-21 12:57:36

Deleting unnecessary keys on the server after ssh-copy-id - where and how to delete?

If someone sent their key to my server via ssh-copy-id (so that later I can log in without a password) where can I see all these keys, who sent them and how to remove unnecessary ones?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2017-04-21
@lxfr

~/.ssh/authorized_keys
/etc/ssh/sshd_config
has an option

# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
#AuthorizedKeysFile     .ssh/authorized_keys

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question