Automatic method

It will very quickly become tedious to type out these commands perfectly every time you want to run a Notebook remotely. The two (bashfunctions below can be used to condense these lines to a few short commands.