AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

sshd permitrootlogin forced-commands-only for non-root userid

  • 1.  sshd permitrootlogin forced-commands-only for non-root userid

    Posted Fri June 13, 2014 01:50 PM

    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?



  • 2.  Re: sshd permitrootlogin forced-commands-only for non-root userid

    Posted Mon June 16, 2014 08:14 AM

    Originally posted by: YannickBergeron


    Yeah I'm pretty sure you can and that it need to be specified in your non-root userid authorized_keys file



  • 3.  Re: sshd permitrootlogin forced-commands-only for non-root userid

    Posted Mon June 16, 2014 09:45 AM

    Originally posted by: Caney879


    I have been able to get that to work, but it seems to me to be a very manual and clumsy way of doing it.