我在 Centos 7 上在 DO 上运行一个 droplet - 从我的 Mac 终端,我可以以 root 身份登录(使用密码),没有任何问题。
但是如果我从 Coda(编辑器)尝试相同操作,我会遇到问题。
我的审计日志文件如下所示:
Nov 15 21:19:14 ePHIcenter sshd[1932]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=$
Nov 15 21:19:14 ePHIcenter sshd[1932]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "r$
Nov 15 21:19:16 ePHIcenter sshd[1932]: Failed password for root from xxx.xxx.xxx.xxx port 48374 ssh2
Nov 15 21:19:16 ePHIcenter sshd[1932]: Received disconnect from xxx.xxx.xxx.xxx: 11: do_connect error [preauth]
Nov 15 21:19:36 ePHIcenter sshd[1934]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=$
Nov 15 21:19:36 ePHIcenter sshd[1934]: pam_succeed_if(sshd:auth): requirement "uid >= 1000" not met by user "r$
Nov 15 21:19:38 ePHIcenter sshd[1934]: Failed password for root from xxx.xxx.xxx.xxx port 48357 ssh2
Nov 15 21:19:38 ePHIcenter sshd[1934]: Received disconnect from xxx.xxx.xxx.xxx: 11: do_connect error [preauth]
我在这里遗漏了什么?
答案1
您的密码中是否有任何特殊字符,例如 @、$ 或 !?看来 coda 无法正确处理它们。
首先尝试一个更简单的密码,然后我建议使用公钥。
http://noscope.com/2012/08/make-your-ssh-keys-work-in-coda-2/