monitor remote command locally

Use a Terminal Multiplexer like screen or tmux.

These simple-but-powerful applications keep a virtual terminal window open and running your application, even when you are not logged in.

You can run multiple virtual terminal windows. You can connect each one separately. You can connect using ssh for remote access.

Both screen and tmux are in the Ubuntu repositories, and both have many great tutorials across the net.