I'm struggling to execute commands through ssh, especially aliased command.The alias I need is ldocker which is set in the remote .bashrc.So far I tried:$ssh bugs2 '. .bashrc && echo -- && alias && echo --'$ssh bugs2 'source .bashrc && echo -- && alias && echo --'$ssh bugs2 'bash source .bashrc && alias'bash: source .bashrc && alias: Aucun fichier ou dossier de ce type$ssh bugs2 bash \source .bashrc && alias\bash: source .bashrc && alias: Aucun fichier ou dossier de ce typeI've looked at the following postsExecute command through SSHshell scripting remote commands through ssh, How to properly run top command through SSH?How to append a file through ssh?but could not find any solution to my issue.So my question is:How to execute, in a single line, .bashrc-remotely-aliased commands through ssh?
How to execute in-line commands through ssh
bash;ssh;bashrc