I tried gaining write permissions to change an HTML file on a remote server that runs Fedora using:
sudo chown -R $USER:$USER /var/www
After entering this line in the terminal connected to the terminal on the server with SSH I am no longer able to connect to the server with FileZilla or establish a new SSH connection with a terminal.
Filezilla: Status: Using username "opc". Status: Server refused our key Error: Could not connect to server
SSH: Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
I have tried:
sudo chmod 755 /var/www/html
sudo chown -R root:root /var/www
Any help would be greatly appreciated!
/var/www
you didn't by mistake write that as/var /www
or some other combination that contains a space?