How to run a program after ssh login

I tried to change my shell to zsh but I cant do it reliably in openwrt 21 because it needs shadow-chsh package and using chsh from that messes with password and makes ssh and luci login impossible.
until that is fixed I am trying to run zsh after ssh login.
is this possible?