I'm trying to run an alias over ssh that runs another alias via ssh. Is this possible?
I was looking at this question about running aliases over ssh and I got this so far:
ssh develop -t /bin/bash -ic "gotoserver"
gotoserver is an alias that runs:
ssh -o StrictHostKeyChecking=no -l user 10.10.10.10
This all works and I end up to 10.10.10.10. But I'm looking to run another alias inside 10.10.10.10 so I tried this:
ssh develop -t /bin/bash -ic "gotoserver -t /bin/bash -ic 'loaddocker'"
But it's not working. It seems to only recognize until gotoserver.
I still end up at 10.10.10.10 but the rest of the command (-t /bin/bash -ic 'loaddocker') seems to be ignored.
But if I go inside develop and run:
gotoserver -t /bin/bash -ic 'loaddocker'
It works and loaddocker is executed.
What am I doing wrong? And can I do this another way without changing anything in develop and 10.10.10.10?
loaddocker?It seems to only recognize until gotoservermeaning I still end up at10.10.10.10but the rest of the command seems to be ignored. I will update my questionssh developto thenssh smthingelseinstead of just using a jump?developserves like a bastion so I need to get through it first. The only way to get tosmthingelseis throughdevelop