diff --git a/src/sftpserver/stub_sftp.py b/src/sftpserver/stub_sftp.py index 7f1ecc7..e82fcd7 100644 --- a/src/sftpserver/stub_sftp.py +++ b/src/sftpserver/stub_sftp.py @@ -30,6 +30,13 @@ def check_auth_password(self, username, password): # all are allowed return AUTH_SUCCESSFUL + def check_auth_publickey(self, username, key): + # all are allowed + return AUTH_SUCCESSFUL + + def get_allowed_auths(self, username): + return 'password,publickey' + def check_channel_request(self, kind, chanid): return OPEN_SUCCEEDED