title: Linux - Remote command execution and .bashrc
body: <p>I have a number of custom aliases on a Linux host (a) and when I am trying to execute some commands from another Linux host (b), the entries in ~/.bashrc complain that those commands cannot be found. Can you please explain how to avoid those errors.</p>
  
  <p>Please refer to the example below.</p>
  
  <p>from (b) to (a)</p>
  
  <pre><code>[root@localhost /]# sshpass -p 'my_pass' ssh -p port_number root@host "uptime"
  
  /root/.bashrc: line 17: hello1: command not found
  
  /root/.bashrc: line 18: hello2: command not found
  
  /root/.bashrc: line 19: hello3: command not found
  
  03:05:56 up 3 days, 23:29,  1 user,  load average: 1.16, 0.78, 0.47
  </code></pre>
  
  <p>Please advise, thanks a lot.</p>