Disable ssh on user does not remove config details.

ItsOnlyMe

Verified User
Joined
Apr 3, 2009
Messages
126
Location
Netherlands
Hi,

When a user is allowed to connect to SSH and only from 1 IP, the user is in the SSH config like "AllowUsers [email protected]" . When you disable SSH for this user this line does not get removed from the SSH config. This way the user is still able to access the server with SSH.

Is there a way have this removed and change the /etc/passwd back to "/bin/false" instead of /bin/bash ?

Kind regards,
 
Back
Top