LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2003, 09:50 PM   #1
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Rep: Reputation: 30
Question 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?
 
Old 08-11-2003, 12:58 AM   #2
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Original Poster
Rep: Reputation: 30
Anyone?
 
Old 08-11-2003, 01:14 AM   #3
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
have you actually tried running "sshd" as root?
 
Old 08-11-2003, 01:23 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 08-11-2003, 02:07 AM   #5
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Original Poster
Rep: Reputation: 30
Will do.

Con.....ya, it says not found
 
Old 08-11-2003, 02:30 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 08-11-2003, 02:39 AM   #7
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Original Poster
Rep: Reputation: 30
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

Last edited by gsibble; 08-11-2003 at 02:43 AM.
 
Old 08-11-2003, 02:46 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 08-11-2003, 02:50 AM   #9
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Original Poster
Rep: Reputation: 30
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.
 
Old 08-11-2003, 02:51 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Okay, the daemon and client are seperate here:

urpmi opensshd



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



Cool
 
Old 08-11-2003, 02:59 AM   #11
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Original Poster
Rep: Reputation: 30
Well, it's all installed, but like I mentioned above, there are no host keys.....any idea how to generate them?
 
Old 08-11-2003, 03:01 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
/etc/init.d/sshd start

It's all done for you

Cool
 
Old 08-11-2003, 03:07 AM   #13
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Original Poster
Rep: Reputation: 30
Just rebooted and it's all set THANKS A TON!!!!!
 
Old 08-11-2003, 03:15 AM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You're welcome, glad I could help

Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh login only with ip CloudBuilder Linux - Networking 3 07-31-2005 11:20 AM
about ssh login... jsnch Linux - Networking 1 07-05-2005 11:39 PM
SSH Login | Need help !! xedios Linux - Software 0 12-21-2004 12:16 PM
ftp login -- ssh no login waffe Linux - General 4 12-27-2003 12:42 AM
SSH Login gsibble Linux - Newbie 4 08-10-2003 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration