Update OpenSSH Server in 12.04?

The Code you Input:

sudo dpkg -i openssh-server_6.6p1-2ubuntu1_amd64.deb

Should install the OpenSSH-Server and not Remove it. Anyway, If you want to install it the Correct way, Open Up a Terminal Using Ctrl+Alt+T and Type:

sudo apt-get install openssh-server    

and it will install The OpenSSH-Server, and if it already Installed, It Will Update it and if it's up to date then nothing will be done, Also, If You have trouble with the Command Above Try:

sudo apt-get update    

And As listed above, Ubuntu Upgrade OpenSSH-Server to an Older Version than the Latest, So To Install the Latest, First we need to remove any existing old OpenSSH-Server, Bring up a Command Prompt Using Ctrl+Alt+T and Type the Following, Pressing Enter after Each Line:

sudo apt-get remove openssh-server    

and Then to Install the latest

wget http://mirror.aarnet.edu.au/pub/OpenBSD/OpenSSH/portable/openssh-6.6p1.tar.gz    

tar -xvf openssh-6.6p1.tar.gz    

cd openssh-6.6p1    

./configure --prefix=/usr --sysconfdir=/etc/ssh    

--with-md5-passwords --with-privsep-path=/var/lib/sshd    

sudo make install    

And you should now Have OpenSSH-Server 6.6 P1, To Check, Type in a Terminal:

sshd -V    

This is not the original solution but a workaround to get the latest openssh-server on Ubuntu. Execute these lines in your Terminal:

sudo echo "deb http://archive.ubuntu.com/ubuntu utopic security universe" >> /etc/apt/sources.list

sudo apt-get update

sudo apt-get install openssh-server=1:6.6p1-2ubuntu1