There was a problem loading the comments.

Enable SSH Password login to VM in ubuntu

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Enable SSH Password Login to VM in Ubuntu

Login to the Server with SSH Key
Access your Ubuntu VM using your existing SSH key credentials.

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

 
sudo vi /etc/ssh/sshd_config

Find and modify (or add) the following lines to enable password and root logins:

 
PasswordAuthentication yes PermitRootLogin yes

Also, ensure the following line is commented out or set to no:

 
ChallengeResponseAuthentication no

Restart the SSH Service
Save the file and restart the SSH service to apply your changes:

 
sudo systemctl restart ssh

Set or Reset the Password for the Root or Target User
Set a password for the root account (or another user) with the following command:

 
sudo passwd root

Enter and confirm the new password when prompted.


Share via
Did you find this article useful?  

Comments

Add Comment

Replying to  

CAPTCHA
© Synex Technology