Open the terminal and type:
sudo apt-get install openssh-server
If that doesn't work, open the Ubuntu Software Center and browse to Edit -> Software Sources -> Ubuntu Software tab, and make sure that you have at least the main, universe and multiverse repositories marked with a check mark.
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
Best Answer
I would install the openssh server package if you have a choice
apt-get install openssh-server
. However if you want to compile from source install openssl first.Either from source or from the package:
apt-get install libssl-dev openssl