问题现象
ssh连接腾讯云轻量化服务器报“connection reset by peer”错误,确认密码正确
解决方法
腾讯云轻量化服务器默认不支持仅通过账号+密码方式登录,需要在配置文件中更改
- 打开
sshd_config
文件
sudo vi /etc/ssh/sshd_config
-
将PasswordAuthentication yes
这一行的注释去掉,若 sshd_config
配置文件中无此配置项,则添加PasswordAuthentication yes
项即可
-
重启 ssh 服务
sudo systemctl restart sshd