1. ssh链接被拒绝
错误告警
ubuntuSSH Connection failed with IOException: "Connection refused (Connection refuse...
原因及解决
没有安装ssh
通过ps -axv | grep ssh 查看发现没有安装ssh,安装命令apt-get install ssh
2. 密码错误
错误告警
·SSH host key matches key seen previously for this host. Connection will be allowed.
ERROR: Failed to authenticate as root. Wrong password.
原因及解决
密码确实是对的,发现其他账号可以登录,切换成普通用户以后就OK了
ssh 使用root用户登录需要设置
sudo vi /etc/ssh/sshd_config
找到并用#注释掉这行:
PermitRootLogin prohibit-password
新建一行 添加:
Pe