Wednesday, December 28, 2016

ssh bad owner or permissions on config


While doing ssh to a hostname (with a custom configuration file named ~/.ssh/config) faced this error:
ssh bad owner or permissions on config

Solution:
chown $USER ~/.ssh/config
chmod 644 ~/.ssh/config
Because of the potential for abuse, this file must have strict permissions: read/write for the user, and not writable by others. It may be group-writable provided that the group in question contains only the user.



source: https://serverfault.com/questions/253313/ssh-hostname-returns-bad-owner-or-permissions-on-ssh-config/710453#710453

No comments:

Post a Comment