linux ssh 客户端_如何在Linux上强制SSH客户端使用密码进行身份验证?

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使sshpassword用作身份验证方法。

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手册

Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/how-to-force-ssh-client-to-authenticate-using-password-on-linux/

linux ssh 客户端

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值