问题原文
原帖链接 · dkaeae · CC BY-SA 3.0
The authorized_keys has a command="..." option that restricts a key to a single command. Is there a way to restrict a key to multiple commands? E.g. by having a regex there, or by editing some other configuration file?
已采纳解答
原帖链接 · Jakuje · CC BY-SA 4.0
No. It is not "allowed" command, but "forced" command (as ForceCommand option).
The only possibility is to use different keys for different commands or read parameters from stdin.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
