Here’s how I prefer to install Magento via SSH
The following assumes an installation version of 1.2.0. It also makes the assumption that you do not want your installation to live in a folder named ‘magento,’ but rather your web root folder. SSH into your server and navigation to your web root ...

