def check_auth_publickey(self, username, key):
# TODO: look up public keys from disk based on configured
# public key storage path
if (username == 'nikki') and (key == good_pub_key):
return paramiko.AUTH_SUCCESSFUL
return paramiko.AUTH_FAILED
评论列表
文章目录