Actions
Bug #12637
closedIncorrect SSH key permission after restore
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
22.01
Release Notes:
Force Exclusion
Affected Version:
2.6.0
Affected Architecture:
Description
restore_sshdata() must set 600 permission mode for *_key files:
sshd[19401]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ sshd[19401]: error: @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ sshd[19401]: error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ sshd[19401]: error: Permissions 0644 for '/etc/ssh/ssh_host_rsa_key' are too open. sshd[19401]: error: It is required that your private key files are NOT accessible by others. sshd[19401]: error: This private key will be ignored. sshd[19401]: error: Error loading host key "/etc/ssh/ssh_host_rsa_key": bad permissions sshd[19401]: error: Could not load host key: /etc/ssh/ssh_host_rsa_key
Related issues
Updated by Viktor Gurov about 3 years ago
- Related to Feature #11118: Backup and restore SSH host key(s) added
Updated by Viktor Gurov about 3 years ago
Updated by Viktor Gurov almost 3 years ago
- Related to Bug #12640: problem with ssh host key permissions after restore from backup, sshd fails to start added
Updated by Viktor Gurov almost 3 years ago
- Related to deleted (Bug #12640: problem with ssh host key permissions after restore from backup, sshd fails to start)
Updated by Viktor Gurov almost 3 years ago
- Is duplicate of Bug #12640: problem with ssh host key permissions after restore from backup, sshd fails to start added
Updated by Jim Pingle almost 3 years ago
- Status changed from New to Pull Request Review
- Assignee set to Viktor Gurov
- Priority changed from Normal to High
- Target version set to 2.6.0
- Plus Target Version set to 22.01
Updated by Viktor Gurov almost 3 years ago
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Applied in changeset 49eba6609d52d9fca416fd487937c37f1daf98dc.
Updated by Danilo Zrenjanin almost 3 years ago
- Status changed from Feedback to Resolved
Tested against:
2.6.0-BETA (amd64) built on Thu Dec 30 06:16:46 UTC 2021 FreeBSD 12.3-STABLE
Permissions look OK.
rw------ 1 root wheel 3389 Dec 31 10:29 ssh_host_rsa_key.rw------ 1 root wheel 419 Dec 31 10:29 ssh_host_ed25519_key
I am marking this ticket resolved.
Actions