Private key is mounted using volume in docker container. Permissions on the host system (Windows) are defined as -r--r--r--. But when i run compose file get this error "Permissions 0755 for '/root/.ssh/id_rsa' are too open."
I also tried to change permissions using bash script that uploads the file to SFTP server.
chmod 600 /root/.ssh/id_rsa
Error:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
| @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
| Permissions 0755 for '/root/.ssh/id_rsa' 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/id_rsa": bad permissions
| Permission denied (publickey,password).
| --- ERROR: sftp failed (status 255) ---