For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Is there a way to restrict sshd to only allow login (ssh name@host), not allow any remote commands (ssh name@host who)?
You can restrict access or use a custom shell, but I'm not aware of a "switch" that would turn off ssh command execution. I also wonder what this could possibility accomplish, because whether you execute a command remotely or type it remotely, where's difference or concern?