LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH Login Again (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-login-again-80801/)

gsibble 08-10-2003 09:50 PM

SSH Login Again
 
Well, I went to install openssh as told and it said it was already installed (hence how I can use the command ssh).

However, a ssh server is NOT running on either of the two systems I'm using!!! The command sshd is supposed to set-up/run the server, but I cannot find the sshd executable ANYWHERE using:

find / -name sshd

It's just not there!! And there's no manpage for sshd.

Does Mandrake 9.1 not support this or something? Where'd it go? :(

gsibble 08-11-2003 12:58 AM

Anyone? :(

contrasutra 08-11-2003 01:14 AM

have you actually tried running "sshd" as root?

MasterC 08-11-2003 01:23 AM

Occasionally RPM based distros get confused if something is actually installed or not. Check your RPM database:
rpm -qa | grep ssh

And see what packages pull up. Post em up ;)

Cool

gsibble 08-11-2003 02:07 AM

Will do.

Con.....ya, it says not found :(

MasterC 08-11-2003 02:30 AM

No problem, drop in your Mandrake CD, locate the openssh rpm, open up a terminal in that directory and type:
rpm -Uvh openssh-version-mkd.rpm

This will probably fail, but give you the list of other RPM's needed for dependencies. Place all of them on the same line and install em:
rpm -Uvh file1.rpm file2.rpm... openssh-version-mdk.rpm

This should result in a successful install (assuming you get all the files in the 'dependency' string).

If you are feeling up to it at this point (and have a compiler installed) you could also grab the latest source for openssh (www.freshmeat.net) and install that way. It's a biggie so be prepared if you choose that.

Yet another option:

rpm --rebuilddb
This will rebuild the database to show correctly what's installed, this might force urpmi to realize it's not there. You might also be typing the wrong string. Try various ways:
urpmi ssh
urpmi openssh

:)

Cool

gsibble 08-11-2003 02:39 AM

Well, here's what pops up:

[sibblegp@pcp03914849pcs sibblegp]$ rpm -qa|grep ssh
openssh-clients-3.5p1-7mdk
openssh-3.5p1-7mdk

So openssh is on there, but let me see what I can do.

Oh, and also:

[root@pcp03914849pcs sibblegp]# urpmi openssh
Everything already installed

But there is no sshd anywhere :(

MasterC 08-11-2003 02:46 AM

Hmmm...

Yeah, don't worry about installing it then, I thought you meant from your above post it wasn't showing up as installed :)

find /usr -iname ssh

Try that, see what you come up with. In the meantime, I'm gonna hit up my Mandrake install and see what's up.

Cool

gsibble 08-11-2003 02:50 AM

Figured it out :) Well, sorta....

The SSH server is in the package openssh-server-3.5p1-7mdk.i586.rpm, not in the openssh package :)

So now I have sshd and I get this error......
[root@pcp03914849pcs RPMS]# sshd
Could not load host key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.

MasterC 08-11-2003 02:51 AM

Okay, the daemon and client are seperate here:

urpmi opensshd

:)

After to start it:
/etc/init.d/sshd

:)

Cool

gsibble 08-11-2003 02:59 AM

Well, it's all installed, but like I mentioned above, there are no host keys.....any idea how to generate them?

MasterC 08-11-2003 03:01 AM

/etc/init.d/sshd start

It's all done for you ;)

Cool

gsibble 08-11-2003 03:07 AM

Just rebooted and it's all set :) THANKS A TON!!!!!

MasterC 08-11-2003 03:15 AM

You're welcome, glad I could help :)

Cool


All times are GMT -5. The time now is 03:08 PM.