ssh user@remotehost 'var1=foo var2=bar tcsh' < shell_script.sh #### ssh user@remotehost 'cmd1 && cmd2 && ... & tcsh' < shell_script.sh