disable ssh login for user
# To deny SSH access to specific user called “sk”, edit sshd_config file:
$ sudo vi /etc/ssh/sshd_config
# Add/edit the following line in sshd_config file.
DenyUsers sk
# Deny SSH access to multiple users, specify the usernames with space separated as shown below.
DenyUsers sk ostechnix
# Deny SSH access to an entire group, for example root, add:
DenyGroups root
# Save and quit the ssh config file. Restart ssh service to take effect the changes.
$ sudo systemctl restart sshd
Also in Shell:
- install docker linux
- create a virtual environment python conda
- install particular version of laravel
- install deb file
- git config ssl verify false
- how to install react with typescript
- ubuntu install apache2
- grep regex negation
- install .net core sdk on linux
- shell script variable
- cmd add to path
- fleet management software github
- apt uninstall
- git cherry pick commit
- redirect folder to 403
- install linuxbrew
- bash write
- install kubernetes on ubuntu
- install flask
- luminati proxy manager
- silent install google chrome powershell
- pipe + exec duplicate stdout linux
- java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files
- bash tee stdout and stderr