I'm trying to connect to a shell server via ssh non-interactively, however it seems to treat sessions quite differently based on whether or not it is an interactive or non-interactive session. Basically, I want to be able to send this command:
AS IF I had, as separate commands, ran:
ssh firstname.lastname@example.org "cd directory; ./script.sh"
me@computer:~$ ssh email@example.com
[me@shell ~]$ cd directory
[me@shell ~/directory]$ ./script.sh
How do I do this so the shell server thinks I am running an interactive session even if I'm not?