一、使用轻量云控制面板的登录,sudo su获取root账号权限;
二、执行passwd命令,输入新密码来修改root密码。
三、修改密码登录为yes,步骤如下
1、运行命令
vi /etc/ssh/sshd_config
2、将参数PasswordAuthentication
设置为yes
,前面不能有#号键
3、重启SSH服务
使用的系统是centos7.2,CentOS 7以上的镜像,则执行命令,
systemctl restart sshd
其他系统执行命令:
service ssh restart
4、使用SSH客户端重新登录Linux实例。
5、完成!
- 错误 gssapi gssapi-with-mic authentication Disconnected错误gssapi gssapi-with-mic authentication gssapi-with-mic gssapi gssapi-with-mic gssapi-keyex permission gssapi gssapi-with-mic gssapi-keyex unreachable hadoop gssapi gssapi-with-mic集群 authentication caching_sha password错误 authentication supported国产 错误 gssapi disconnected gssapi-keyex