SSH: Permissions too open

Fehlermeldung:

Dateirechte sind zu offen, weil der Key zb einfach als Datei erzeugt wurde:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/root/.ssh/sshkey.ppk' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/root/.ssh/sshkey.ppk": bad permissions

Lösung:

chown 600 ~/.ssh/sshkey.ppk

 


Revision #1
Created 2025-05-06 14:42:02 UTC
Updated 2026-01-25 22:01:54 UTC