1
We have ubuntu instance on amazon and due to some reasons, we have changed the permissions of folder /home to 777. Command : sudo chmod -R 777 /home
and now we are unable to connect to SFTP or via putty. So Please help us out how to solve this problem asap.
Are you using public key authentication? The OpenSSH server requires the files in
~/.ssh/
directory to have achmod
mask of600
. – GiantTree – 2018-01-24T13:16:23.5101If you try
ssh -vv username@host
you may see more information regarding why you cannot connect, or at least how far into the process that it fails. You've opened up permissions of /home to the world, so except for situations like what GiantTree commented, this should not be permission related. – Xalorous – 2018-01-24T13:37:21.733@Xalorous yes, it will be permission related, but in the opposite way than you are thinking. If your
~/.ssh/authorized_keys
file is writable by others then sshd considers it potentially compromised and untrusted... and ignores it. – Michael - sqlbot – 2018-01-24T23:35:14.253