# Upgrade ubuntu 20.04 to 21.10 ###### tags: `linux` Upgrade ubuntu in ssh way. #### 1. set ClientAliveInterval to 60 to keep ssh session alive ``` $ vim /etc/ssh/sshd_config ClientAliveInterval 60 ``` ``` $ systemctl restart ssh ``` #### 2. execute upgrade ``` $ apt update && apt dist-upgrade ``` #### 3. install update manager core ``` apt install update-manager-core ``` #### 4. edit release-upgrades config set Prompt from lts to normal ``` $ vim /etc/update-manager/release-upgrades Prompt=normal ``` #### 5. run upgrade ``` $ do-release-upgrade ``` #### 6. check release ``` $ lbs_release -a ``` #### reference. https://www.linuxbabe.com/ubuntu/upgrade-ubuntu-20-04-to-ubuntu-20-10