Skip to Main Content

Infrastructure Software

Announcement

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!

Restrict sshd to login only, no commands

Jack AllenMay 15 2019 — edited May 15 2019

Is there a way to restrict sshd to only allow login (ssh name@host), not allow any remote commands (ssh name@host who)?

Comments

Dude!

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?

1 - 1

Post Details

Added on May 15 2019
1 comment
142 views