I lost my ssh connection to Ubuntu 10.10 server during the configuration update stage of an aptitude full-upgrade for a few month's worth of updates.

From the following ps ax list, can anyone tell me how I might reconnect to the screen which is prompting whether to keep the existing samba version, or use the distribution conf version?

Failing that, what's the safest sequence top kill these processes and start again? This time I'll remember to use screen to prevent connection loss.


 9105 ?        Sl     0:01 aptitude full-upgrade
11375 tty1     Ss+    0:00 /sbin/getty -8 38400 tty1
14966 pts/2    Ss+    0:00 /usr/bin/dpkg --status-fd 35 --configure linux-headers-2.6.35-27 libc-dev-bin linux-libc-dev libc6-d
20519 ?        Ss     0:00 /usr/sbin/sshd -D
21098 pts/2    S+     0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/samba-common.postinst configure 2:3.
21118 pts/2    S+     0:00 /bin/sh /var/lib/dpkg/info/samba-common.postinst configure 2:3.5.4~dfsg-1ubuntu8
21134 pts/2    S+     0:00 /bin/bash /usr/bin/ucf --three-way --debconf-ok /var/run/samba/upgrades/smb.conf /etc/samba/smb.conf
21175 pts/2    S+     0:00 whiptail --backtitle Package configuration --title Samba Server --output-fd 11 --nocancel --default-