问题原文
原帖链接 · Chocobo · CC BY-SA 4.0
I'm looking for an option to hinder users to add their public key with ssh-copy-id. So that an admin has to upload it (like github and other services) with a webui.
For example: I tried to add my keys to a cloudways instance but can not log in with them, Instead I have to use their web ui. I want to achieve the same. Also I'm looking for the web ui part. If you have any pointers.
已采纳解答
原帖链接 · John Mahowald · CC BY-SA 4.0
In sshd_config, change AuthorizedKeysFile to something users cannot write to.
Implement your desired way of looking up keys with AuthorizedKeysFile or AuthorizedKeysCommand. Many possible ways to get such keys, regular files, user directory lookups, get from a web server, DNS TXT records. Pick one that fits your environment.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
