I am trying to authenticate GCP VM root
username with its password to add GCP VM in cloudera cluster.
When I select user root and type password, its giving authentication failed
error.
Troubleshooting I make:
- Permit root login is set to Yes: sudo vi /etc/ssh/sshd_config and Uncomment line: #PermitRootLogin prohibit-password and change it to yes
- password Authentcation is “yes” in /etc/ssh/sshd_config file and restart sshd service in each VM: sudo service ssh restart , sudo service ssh status
- Create password for root,Command: sudo passwd root
Pls help how to resolve password authentication error in GCP VM for Ubuntu 20.04 LTS.
Logs:
root@cloudera-1:~# sudo tail -f /var/log/auth.log
May 24 08:35:52 cloudera-1 sudo: pam_unix(sudo:session): session opened for user root by divyank_mahalle(uid=0)
May 24 08:36:19 cloudera-1 sshd[6584]: Received disconnect from 10.128.0.34 port 42116:11: [preauth]
May 24 08:36:19 cloudera-1 sshd[6584]: Disconnected from authenticating user root 10.128.0.34 port 42116 [preauth]