gpt4 book ai didi

python - Paramiko 是否支持基于证书的身份验证

转载 作者:行者123 更新时间:2023-12-01 07:32:22 28 4
gpt4 key购买 nike

Paramiko 支持基于证书的身份验证吗? connect 方法中的 key_filename 提到它同时支持私钥和证书,这里的证书是指基于证书的身份验证吗?

key_filename (str) – the filename, or list of filenames, of optional private key(s) and/or certs to try for authentication

connect(hostname, port=22, username=None, password=None, pkey=None, 
key_filename=None, timeout=None, allow_agent=True,
look_for_keys=True, compress=False, sock=None, gss_auth=False,
gss_kex=False, gss_deleg_creds=True, gss_host=None,
banner_timeout=None, auth_timeout=None, gss_trust_dns=True,
passphrase=None, disabled_algorithms=None)

最佳答案

Paramiko 支持 proprietary OpenSSH public key algorithms supporting certificates .

SSHClient.connect method 的文档对此更清楚(比 key_filename 参数本身的文档):

key_filename may contain OpenSSH public certificate paths as well as regular private-key paths;

关于python - Paramiko 是否支持基于证书的身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57155611/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com