【问题标题】:Does Paramiko support certificate based authenticationParamiko 是否支持基于证书的身份验证
【发布时间】:2019-11-30 23:53:44
【问题描述】:

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

key_filename (str) – 文件名或文件名列表, 可选的私钥和/或证书尝试进行身份验证

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)

【问题讨论】:

    标签: python ssh paramiko public-key openssh


    【解决方案1】:

    Paramiko 支持proprietary OpenSSH public key algorithms supporting certificates

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

    key_filename 可能包含 OpenSSH 公共证书路径以及常规私钥路径;

    【讨论】:

      猜你喜欢
      • 2013-04-05
      • 2016-06-21
      • 1970-01-01
      • 2020-01-08
      • 2016-10-02
      • 1970-01-01
      • 2012-07-12
      • 2018-02-24
      • 1970-01-01
      相关资源
      最近更新 更多