Solution 1:

You can use df -h to see the free space, used space, and total space of all partitions on the system.

Solution 2:

Are you wanting to see the disk usage on the SSH remotely? As in, "log in to SSH server and then show the disk usage"?

If so...

ssh user@host "df -h"

That's assuming you have key logins enabled so it doesn't prompt you for a password.