The question ssh "permissions are too open" error appears on Stack Overflow.
It is closed as off-topic.
Instead, the solution is not definitive. For example, if you work inside a VagrantBox with a Windows host, you can't do that change of permissions so simply, so the question needs more solutions.
Can the question be moved onto Server Fault?