I am executing ssh myuser@myserver.
Is there any way to trace all actions performed and the names of files being sourced? (similarly as with bash -x)
PS: I executed bash -x at the command prompt after sshing (spawning another Shell), but I do not know if the sequence of actions is the same as when sshing (see Where are commands sourced upon ssh)