if you run the command 'sudo do-release-upgrade -d' through ssh then use a screen, because the upgrade process will turn off ssh -> close the default port and open a new one ( it will inform you of this new port ), so: