I want to know if there is any way to prevent user from executing any command line (even some simple one like ls -la, uptime...)I tried some ways like delete user's bash file but it didn't work.All users can login to the server using their own SSH key created by an admin user. This server is for authentication only so I don't want to give users permission to execute any command. What I want to get is: User can login to server and stay there, can't do anything else.
Prevent SSH user from executing any command line
ssh;security;login;account restrictions