How to Compare local & remote Files over ssh?

I want to make a script to compare list of files in terms of its size on local & remote server whose names are same & this is required over ssh. How can I accomplish this.

Any help would be appreciated.

What is the exact problem? What have you tried so far?