I am new to the whole virtual linux world. And this particular problem is strange and after a day of googling I find myself again on serverfault so thanks for your time!
I created a linux ec2 instance via amazon. I was able to successfully connect to the instance with Filezilla and Putty before entering any CLI.
What I was trying to do:
My only login was ec2-user and I wanted access to the /var/www/html which is owned by user root.
So I connected via Putty and typed the following
sudo su- chown -R ec2-user /var chmod -R 755 /var
Then I disconnected.
Now Putty and Filezilla will refuse my connection and throw errors when I try.
What went wrong?