小编goo*_*ata的帖子

无法使用正确的密码通过远程 SSH 登录

在昨天 SSH 工作的 cPanel 服务器上,我突然无法使用 SSH 登录。我收到“拒绝访问”。

我检查了密码登录是否已启用,/etc/ssh/sshd_config并且确实如此。我尝试通过 KVM 以 root 身份登录,然后通过 SSH 登录localhost,它可以工作。

我尝试了多个帐户,甚至创建了一个新帐户,但它不起作用,我确定密码是正确的,因为我已多次重置它们,甚至将它们复制粘贴到 Putty 中,更不用说它们通过KVM。

我不知道发生了什么会导致这种情况在一夜之间发生变化。

我还检查sshd_configAllowUser允许您限制访问某个 IP 的指令,但它没有。

还有一点,我只是在手机的 4G 上检查过它,它在那里工作,只是在我的 DSL 上不起作用。

过去,我的 DSL 上的连接对我的服务器来说很慢而且是虚假的。即使在搬到不同国家的不同主机之后。在那些时候,我尝试的所有其他网站都可以正常工作。不确定是否相关。

这是在ssh -vWindows 的 SSH中使用 Git的输出。

OpenSSH_6.6.1, OpenSSL 1.0.1i 6 Aug 2014
debug1: Connecting to <host> [<IP>] port 22.
debug1: Connection established.
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_rsa-cert type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: identity …
Run Code Online (Sandbox Code Playgroud)

linux ssh passwords

8
推荐指数
1
解决办法
5万
查看次数

标签 统计

linux ×1

passwords ×1

ssh ×1