I've set up an alias in my bashrc so I can access the cluster at work from home. However, to run programmes on it, I'd like to login to my work computer. How do I add that hostname so I can use one alias?
I've tried just extending the alias by alias WORK="ssh user@work; user@hostname", but I still only have access to my files and can't run anything. If I run the second part again once logged in, it then works. home is the same for both if that makes a difference as I tried to add another key.