linux ssh 客户端
ssh client can use many authentication methods like password, keys. On a server, I set password-less log in with private/public key. Now, I want to try whether the new password is set correctly by log on using ssh. By default, the key-based authentication method is used again.
ssh客户端可以使用许多身份验证方法,例如密码,密钥。 在服务器上 ,我设置了使用私钥/公钥的无密码登录。 现在,我想尝试通过使用ssh登录来正确设置新密码。 默认情况下,再次使用基于密钥的身份验证方法。
How to force ssh client to authenticate using password on Linux?
如何在Linux上强制ssh客户端使用密码进行身份验证?
You can use this command:
您可以使用以下命令:
ssh -o PreferredAuthentications=password username@host
Here, PreferredAuthentications=password
make ssh
to use password
as the authentication method.
在这里, PreferredAuthentications=password
使ssh
将password
用作身份验证方法。
The methods available for authentication are: GSSAPI-based
authentication, host-based authentication, public key authentication,
challenge-response authentication, and password authentication.
Authentication methods are tried in the order specified above, though
protocol 2 has a configuration option to change the default order:
PreferredAuthentications可用于身份验证的方法有:基于GSSAPI
身份验证,基于主机的身份验证,公钥身份验证,
质询响应认证和密码认证。
身份验证方法按照上面指定的顺序尝试
协议2具有用于更改默认顺序的配置选项:
首选认证
More about ssh authentications, please check ssh
manual.
有关ssh身份验证的更多信息,请参阅ssh
手册 。
翻译自: https://www.systutorials.com/how-to-force-ssh-client-to-authenticate-using-password-on-linux/
linux ssh 客户端