This question already has an answer here:
I've looked at a lot of similar questions about this but haven't found anything to solve my issue.
I would like to be able to open an ssh connection to my university's server and keep the connection open in the background. What I'm doing is I ssh into the uni server and run a script, then scp a file from there to my remote, like:
$ssh firstname.lastname@example.org "./bin/script" email@example.com's password: $scp firstname.lastname@example.org:~/some_file.txt . email@example.com's password:
I do this sequence of commands a ton, and eventually my connection gets refused because the university mistakes it for malicious software. So what I'd like to be able to do is open the ssh connection once, then keep it open so I can continuously run the script on the remote server. I don't want to open the ssh connection in another terminal as its very annoying having two terminals open and constantly alt+tab'ing to the wrong one. Surely there must be a way to do this, I would really appreciate some help.