How (and Why) to Disable Root Login Over SSH

preview_player
Показать описание
Video Time Codes (Click them to skip to that part of the video).
Learn how to:
0:00 Introduction
0:10 Understand why to disable root login over SSH
1:49 How to create a new administrator account
2:50 Make changes to SSH login policy
3:58 Verify new policy

Comment below solutions you want to see and problems you need fixed. Make sure to like and subscribe for more highly informative quality videos!

This video is NOT sponsored.

## Commands used ##
#--------------------------------------

# ssh
#--------------------------------------

# Create an administrator user
#--------------------------------------
adduser newaccountusername
passwd newaccountusername
RHEL based: usermod -aG wheel newaccountusername
Debian based: usermod -aG sudo newaccountusername

# Edit SSH Policy
#--------------------------------------
nano /etc/ssh/sshd_config
Change the line 'PermitRootLogin yes' to 'PermitRootLogin no'

# Restart SSH Service to use new policy
#--------------------------------------
sudo systemctl restart sshd
Рекомендации по теме
Комментарии
Автор

Thank you so much, this is one of the best educational videos on YouTube! People just don't see it and don't realize the value of this video!

taichigoodness
Автор

Video Time Codes (Click them to skip to that part of the video)
Learn how to:
0:00 Introduction
0:10 Understand why to disable root login over SSH
1:49 How to create a new administrator account
2:50 Make changes to SSH login policy
3:58 Verify new policy

nerdlearn
Автор

realistically just use certifcates. and dont give other permission to root login.

durschfalltv