Drush – Getting remote sessions to work
Getting Drush remote sessions working between development machine and hosting
By default aliases are not expanded when the shell is not interactive, unless the expand_aliases shell option is set:
On remotely hosted server (Staging Server)
edit ~.bashrc
Example:
# .bashrc # aliases not usually expanded in non interactive shells, so fix this: shopt -s expand_aliases # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions alias drush="/home/admin98/drush/drush"

