de man bash(1)
:
Aliases are not expanded when the shell is not interactive, unless the
expand_aliases shell option is set using shopt (see the description of
shopt under SHELL BUILTIN COMMANDS below).
adicione a seguinte linha ao seu arquivo .bashrc
:
shopt -s expand_aliases
ou:
[alexus@wcmisdlin02 ~]$ ssh 0 'bash -c ll | head -1'
bash: ll: command not found
[alexus@wcmisdlin02 ~]$ ssh 0 'bash -ci ll | head -1'
bash: no job control in this shell
total 8612
[alexus@wcmisdlin02 ~]$