Portal Home > Knowledgebase > Articles Database > Can't install ssh on debian
Can't install ssh on debian
Posted by afree2, 08-24-2009, 07:58 AM |
I just installed debian amd 64 on my quad core xeon machine on standard installation.
It is successful but I cannot find ways to get ssh to be installed.
#apt-get install ssh openmssh-server
Reading package list... Done
Building dependency tree
Reading state information... Done
Package ssh is not available, but is referred to by other package.
This may mean that the package is missing, or has been obsoleted, or
is only available from another source
However the following packages replace it:
openssh-client
E: Package ssh has no installation candidate
#/etc/init.d/ssh reload
-su: /etc/init.d/ssh: No such file or directory
How do I get ssh to work?
my /etc/apt/sources/list is
deb http://security.debian.org lenny/updates main
deb-src http://security.debian.org lenny/updates main
I've run apt-get update earlier before.
|
Posted by jtg1993, 08-24-2009, 08:18 AM |
Just do
# apt-get upgrade && apt-get install ssh
Is /etc/apt/sources/list a typing mistake? Because it should be /etc/apt/sources.list
|
Posted by nomankhn, 08-24-2009, 08:18 AM |
Please try
/etc/init.d/sshd restart | reload
|
Posted by afree2, 08-24-2009, 08:50 AM |
i've run #apt-get upgrade
sorry if there's typo because i re-type what i saw in my screen..
#apt-get install ssh
Reading package list... Done
Building dependency tree
Reading state information... Done
Package ssh is not available, but is referred to by other package.
This may mean that the package is missing, or has been obsoleted, or
is only available from another source
However the following packages replace it:
openssh-client
E: Package ssh has no installation candidate
#/etc/init.d/ssh restart
-su: /etc/init.d/ssh: No such file or directory
pls advise further..
|
Posted by FastServ, 08-24-2009, 10:06 AM |
Try this instead:
#apt-get install openssh-server
Not neccesary to include 'ssh', not to mention you had a type-o!
|
Posted by eth10, 08-24-2009, 10:22 AM |
sudo apt-get install ssh-server
This should work without any issues.
|
Posted by angathan, 08-24-2009, 10:25 AM |
Hope you would be trying to install as a root user.
Again it may be typo, The service is sshd and not ssh
/etc/init.d/sshd restart
|
Posted by inspiron, 08-24-2009, 10:30 AM |
If you already installed ssh, you can run,
Code:
dpkg-reconfigure ssh
This will reconfigure ssh and prompt you to run the sshd server.
|
Posted by NeWeb, 08-24-2009, 11:47 AM |
init script (and deamon) name is sshd not ssh
so run
|
Posted by PeHe, 08-25-2009, 08:43 AM |
You are missing repositories..
Add this to sources.list and run "apt-get update ; apt-get install openssh-server"
deb ftp://ftp.debian.org/debian/ lenny main
deb-src ftp://ftp.debian.org/debian/ lenny main
|
Add to Favourites Print this Article
Also Read
Staminus down (Views: 789)