In order to restore your database via SSH or Telnet you will require 2 things:
SSH or Telnet access to your site. You will need to check with your hosting company to see if this is available.
An SSH/Telnet Client, such as PuTTY.
You can either change directoties to wherever the backup is...