title: ssh command execution doesn't consider .bashrc | .bash_login | .ssh/rc?
body: <p>I am trying to execute a command remotely over ssh, example:</p>
  
  <pre><code>ssh &lt;user&gt;@&lt;host&gt; &lt;command&gt;
  </code></pre>
  
  <p>The command which needs to be executed is an alias, which is defined in .bashrc, e.g.</p>
  
  <pre><code>alias ll='ls -al'
  </code></pre>
  
  <p>So what in the end the following command should get executed:</p>
  
  <pre><code>ssh user@host "ll"
  </code></pre>
  
  <p>I already found out that .bashrc only gets sourced with interactive shell, so in .bash_login I put:</p>
  
  <pre><code>if [ -f ~/.bashrc ]; then
    . ~/.bashrc
  fi
  </code></pre>
  
  <p>and I also tried to define the alias directly in .bash_login. </p>
  
  <p>I also tried to put the alias definition / sourcing of .bashrc in .bash_profile and also in .ssh/rc. But nothing of this works.
  Note that I am not able to change how the ssh command is invoked since this is a part of some binary installation script. The only thing I can modify is the environment. Is there any other possibility to get this alias sourced when the ssh command is executed? Is there some ssh configuration which has to be adapted?</p>