确认密码正确的情况下
需要修改两个地方
vi /etc/ssh/sshd_config
开启root登录 PermitRootLogin yes
开启密码认证 PasswordAuthentication yes
重新启动ssh服务 sudo service sshd restart
就可以登陆了
SSH能够连接,SFTP不能连接问题
1、看下服务路径
[root@*****]# locate sftp-server
/usr/libexec/openssh/sftp-server
/usr/share/man/man8/sftp-server.8.gz
2、看下配置文件中信息:
vi /etc/ssh/sshd_config
Subsystem sftp /usr/libexec/openssh/sftp-server
-----Subsystem 前面有#号的话去掉。
就可以快乐的传文件了
参考链接:https://blog.csdn.net/corpse2010/article/details/91040974