For manual stuff like this, using screen/tmux from a session on the server itself used to be the standard approach.