问题描述
在使用FinalShell连接配置虚拟机时,无法正常连接,一直提示输入登录密码,即使输入的密码是正确的。
解决方案:
- 直接从虚拟机内打开终端,切换至root用户,进入配置文件修改内容
[admin@localhost ~]$ su root
密码:
- 输入命令
vim /etc/ssh/sshd_config
,取消文件里PermitRootLogin yes的注释,退出保存。
# 取消文件里PermitRootLogin yes的注释,退出保存。
[root@localhost admin]# vim /etc/ssh/sshd_config
- 输入命令
systemctl restart sshd
,重启ssh服务.
# 重启ssh服务
[root@localhost admin]# systemctl restart sshd
- 用finalshell重新连接,即可正常连接登录。