Drush – Getting remote sessions to work

Category: Note to Self

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


# .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
# User specific aliases and functions
alias drush="/home/admin98/drush/drush"

Leave a Reply

You must be logged in to post a comment.