Möglicherweise handelt es sich um ein Dateiberechtigungsproblem.
In der Datei contrib / win32 / win32compat / w32-sshfileperm.c gibt es diesen Kommentar:
/* * The function is to check if current user is secure to access to the file. * Check the owner of the file is one of these types: Local Administrators groups, system account, current user account * Check the users have access permission to the file don't voilate the following rules: * 1. no user other than local administrators group, system account, and pwd user have write permission on the file * 2. sshd account can only have read permission * Returns 0 on success and -1 on failure */ int check_secure_file_permission(const char *input_path, struct passwd * pw)
Sie müssen prüfen, ob die Berechtigungen korrekt sind:
- Im Benutzerverzeichnis
home
(C: \ Users \ john.doe) - Im
.ssh
Verzeichnis (C: \ Users \ john.doe \ .ssh) - Und in der
authorized_keys
Datei (C: \ Users \ john.doe \ .ssh \ authorised_keys).
Referenz:
[1] https://askubuntu.com/questions/1078884/key-rejection-when-do-ssh