On my laptop
Inside ~/.ssh/config file I have this:
Host <serverAlias>
HostName 127.0.0.1 #Server IP
User <username>
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
On the server
Inside ~/.bashrc I have this alias:
alias runcomman="ls -al"
What I want to do is
In my terminal I want to type ssh <serverAlias> <something> to ssh into the server & run the alias on the server.
How can I do this?
ssh serverAlias runcommandoes find aliases from.bashrc. Is this not working? What is your login shell on the server (ssh serverAlias 'ps $$')?7493 ? Rs 0:00 ps 7493ssh serverAlias 'ps $$'; alias, then