disable eslint
/* eslint-disable */
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
ubuntu disable ssh root
#Open the SSH configuration file sshd_config with the text editor vi:
sudo nano /etc/ssh/sshd_config
#In the line PermitRootLogin yes replace the word Yes with the word No.
#Save the file.
#Restart the service.
sudo service ssh restart
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us