There was a problem loading the comments.

Enable SSH Login in AlmaLinux 8

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Edit the SSH Configuration File
Open the SSH daemon configuration file with a text editor:

 
sudo vi /etc/ssh/sshd_config

Locate or add the following lines to allow password and root logins:

 
PasswordAuthentication yes PermitRootLogin yes

Make sure the following line is commented out or set to no to disable challenge-response authentication:

 
ChallengeResponseAuthentication no

Restart the SSH Service
Apply your configuration changes by restarting the SSH daemon:

 
sudo systemctl restart sshd

Set or Reset the Password for the Root or Target User
To set a new password for the root account or another user, run:

 
sudo passwd root

Follow the prompts to enter and confirm the new password.


Share via
Did you find this article useful?  

Comments

Add Comment

Replying to  

CAPTCHA
© Synex Technology