How to access a remote site using the command line (with drush)?
go into your drush folder
Copy the file examples/example.aliases.drushrc.php to root of your drush folder and rename it to aliases.drushrc.php
Read the comments in that file and this slideshare
create your aliases for both the local site and development site (on shared or vps)
make sure you have a proper ssh connection setup to your remote server