Originally posted by: Caney879
In sshd_config one can set the root login with public key authentication but only if the command option has been specified by using the permitrootlogin forced-commands-only.. Is there a way to set a non-root userid to do the same thing, where only "ssh host command" are accepted from a non-root userid?