PermitLocalCommand yes
LocalCommand ps -ef
上述两个药搭配使用。
you know what above command do ? It run on your local machine instead of the remote one ! :) !!
I was looking for something to execute a command on the machine I just login , but found nothing in ssh conf docs.
Maybe only login profile on each machine could help(save it in a nfs file).