Permission Denied
In short: The user lacks permission for a file, directory or action.
In more detail: Frequent on Linux, SSH and when writing files.
In Depth
Possible causes
- Wrong file permissions or owner.
- Command needs administrator rights.
- SSH key not allowed.
Solutions
- Look at permissions with
ls -l, adjust withchmod/chown. - Run with
sudoif necessary. - For SSH: check key permissions (
chmod 600) and the entry in authorized_keys (SSH).