To CHMOD a folder or file in ssh simply use the "chmod" command, the properties and the folder that you wish to chmod. For example: chmod 777 /home/www/testsite.com/index.php
If you wish to CHMOD a whole folder and everything in it, toss in an "-R" right in front of the number like this: chmod -R 777 /home/www/testsite.com/folder/