I am trying to create an ssh connection and do some things on the remote server from within the script.
However the terminal prompts me for a password, then opens the connection in the terminal window instead of the script. The commands don't get executed until I exit the connection.
How can ssh from within a bash script?