Hello and Welcome to LinuxQuestions,
Did you have a look at the man page for ssh? Or do a search on the Internet? I'm sure either of those would have pointed you to something like this:
Code:
ssh user@host 'command1; command2; command3'
or you could put a rc file in ~/.ssh/rc on the remote server (look it up in the man page) to execute commands when logging in which would execute the commands before the shell is started. If either of the above doesn't work for you, then please be more specific on what you want to do.
Looking forward to your participation in the forums. Have fun with Linux.
Kind regards,
Eric