Is there an option similar to no-user-rc that I can use in sshd_config?
I want to prevent from executing the ~/.ssh/rc file for everybody (whether logging in using a password or key).
Using Openssh 5.3p1.
Is there an option similar to no-user-rc that I can use in sshd_config?
I want to prevent from executing the ~/.ssh/rc file for everybody (whether logging in using a password or key).
Using Openssh 5.3p1.
If restricting everyone to using authorized keys only is not an option, you can use the ForceCommand directive in sshd_config to achieve what you want (Openssh 4.9 or later). See OpenSSH Security:
The patch notes for OpenSSH 4.9 state the following regarding ForceCommand:
One suggestion would be to use the solution proposed in this thread "ForceCommand and ~/.ssh/rc".