Mobaxterm reports an Access denied error when connecting to a virtual machine
Table of contents
Mobaxterm reports an Access denied error when connecting to a virtual machine
1. Check whether the account password is wrong
2. Check whether port 22 exists
1. Check whether the account password is wrong
Go to VMware to verify whether the account password is correct, enter the command su, and enter the password to verify
su
Verify that the password is correct.
If the password is incorrect and needs to be reset:
重设root密码,sudo passwd root , 输入密码(我设置的是跟平时切换root的密码一致)
Enter su to verify that the setup is successful:
2. Check whether port 22 exists
ss -ntl
Detect port already exists
3. Change the password to deny remote access and change the configuration (if there is no vim, install vim first)
root@ubuntu:~# vim /etc/ssh/sshd_config
permitRootLogin prohibit-password
Change to PermitRootLogin yes
Restart the ssh service
systemctl restart ssh //重启ssh服务
4. Reconnect Mobaxterm
[email protected]'s password:后面输入密码
The connection is successful, I hope you can help me! ! !