I have a custom profile script on a remote host. I'd like to source it when I connect to the host automatically. I cannot change anything on the remote host. Things I've tried but didn't work:
ssh -t myhost '. /local/scratch/scripts/rtc_profile ; bash -l'
ssh -t myhost 'bash -l /local/scratch/scripts/rtc_profile'
I've also tried the following (which works), but it skips all other rcfiles:
ssh -t myhost 'bash --rcfile /local/scratch/scripts/rtc_profile '
Please help :)