I try to alias to multi-hop SSHing and to put some additional commands to this alias after login to the remote machine. I have already working alias to ssh-ing to remote machine
alias comandname='ssh -t -t -X '\''login@machine1'\'' exec "ssh -X '\''login@machine2'\''"'
but I don't how to put command to run on the machine2. I also tried to put something into .bashrc on machine2 (it didn't work) but I would like to know more general solution to have several different command under different aliases. The simple example command would be cd to specific folder on machine 2 from this alias.