1.在连接的过程中一直报这个错误,并且在登录的时候一直没有密码输入提示

错误:The client has disconnected from the server.  Reason:
Unable to authenticate using any of the configured authentication methods.

由于vagrant构建的centos7中有普通用户vagran和管理员root,在使用SecureCRT的过程中都没有输入密码。

解决办法为:

①在vagrant使用命令进入/etc/ssh。修改sshd_config文件的配置

sudo vi /etc/ssh/sshd_config

在该文件中加入一下配置

PasswordAuthentication yes

②配置添加完成后,重启ssh服务

service sshd restart

③重新启动服务后,重新使用SecureCRT连接centos7,就会输入密码,然后正常登陆

 

更多推荐