Bug #12637
closed
Incorrect SSH key permission after restore
Added by Viktor Gurov over 4 years ago.
Updated over 4 years ago.
Category:
Backup / Restore
Plus Target Version:
22.01
Release Notes:
Force Exclusion
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 to Bug #12640: problem with ssh host key permissions after restore from backup, sshd fails to start added
- Related to deleted (Bug #12640: problem with ssh host key permissions after restore from backup, sshd fails to start)
- Is duplicate of Bug #12640: problem with ssh host key permissions after restore from backup, sshd fails to start added
- 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
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Applied in changeset commit:49eba6609d52d9fca416fd487937c37f1daf98dc.
- 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.
Also available in: Atom
PDF