How to install SSH server on Ubuntu?
I just installed Ubuntu 9.10 on a machine here. Tried to SSH to it and failed. Tried to "ssh localhost" from the machine itself and that failed. Did a quick google search and found out that an SSH server is not installed by default.
But how do I install it? I tried the following, which failed: Code:
sudo apt-get install openssh-server |
did you update your sources first?
If so, and it still doesn't work, post the contents of sources.list and "apt-cache policy openssh-server" |
I'm not sure what you mean by "update your sources first".
|
I'm not real familiar with apt. can you do searches? if not, I know you can search with synaptic package manager. You might just do a search for ssh and see what it turns up. you may be inputting the package wrong.
|
I mean "apt-get update".
|
Basic apt tutorial.
Apt looks at your sources.list file to find the download servers for all software to install. Package managers such as synaptic also look at your sources.list file. This file is located at /etc/apt/sources.list. Apt is a very useful and powerful tool that is very easy to use. Synaptic is a GUI interface available in the gnome desktop environment to control apt. Adversely Kpackage does the same thing in the KDE desktop environment. If you want to search for a package you can use apt-cache Code:
apt-cache search <package name> Code:
apt-get install <package name> Code:
apt-get remove <package name> Code:
apt-get remove --purge <package name> Code:
apt-get -f install To perform a system update use apt-get upgrade Code:
apt-get upgrade Code:
apt-get dist-upgrade Code:
apt-get update using the above information you should be able to do almost anything related to package management on your system. |
Also can you post the contents of /etc/apt/sources.list?
|
Thank you everyone. I did the "sudo apt-get update" (took a while), and then the "sudo apt-get install openssh-server" worked!
|
Always update your sources before performing any package installs or upgrades.
|
All times are GMT -5. The time now is 10:49 AM. |