提供2个公共密钥后,SSH不会提示input密码

这是我的问题,有点长,但会试图限制它。

我有ssh服务器和多个ssh客户端(比如说3)。 所有客户端上的oracle用户使用设置了密码的“sshuser”login到服务器。 现在我删除了服务器上的“sshuser”并重新创build了它。 当oracle用户尝试SSH到服务器,它试图提供2个公共密钥可用(id_rsa,id_dsa),然后给出下面的错误

debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /home/oracle/.ssh/identity debug1: Offering public key: /home/oracle/.ssh/id_rsa debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Offering public key: /home/oracle/.ssh/id_dsa Received disconnect from: 2: Too many authentication failures for sshuser 

当我将PubkeyAuthentication no添加到客户机上的〜/ .ssh / config文件时,会提示input密码并login。

我的问题是为什么在2次失败的公钥使用失败之后没有提示input密码。 我相信在SSH服务器closures连接之前MaxAuthTries的默认数量是6.但是这里只是尝试了2次。

另一个有趣的事情是所有3个客户端与oracle用户尝试时都有相同的问题。 但所有的root用户都正常工作。 所以我不得不在所有这些文件上附加.ssh / config文件来解决这个问题。

那么它是如何工作的,而不需要在我现在需要的configuration文件中join任何东西呢?

还没有结束。 当我尝试从另一个帐户SSH入服务器提供4个密钥文件,然后提示input密码。

 debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: /home/infraens/.ssh/identity debug1: Trying private key: /home/infraens/.ssh/id_rsa debug1: Trying private key: /home/infraens/.ssh/id_dsa debug1: Trying private key: /home/infraens/.ssh/id_ecdsa debug1: Next authentication method: keyboard-interactive 

密码:那为什么只有oracle用户而不是别人呢?