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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-10-2003, 09:50 PM
|
#1
|
Member
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162
Rep:
|
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? 
|
|
|
08-11-2003, 12:58 AM
|
#2
|
Member
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162
Original Poster
Rep:
|
Anyone? 
|
|
|
08-11-2003, 01:14 AM
|
#3
|
LQ Guru
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445
Rep:
|
have you actually tried running "sshd" as root?
|
|
|
08-11-2003, 01:23 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-11-2003, 02:07 AM
|
#5
|
Member
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162
Original Poster
Rep:
|
Will do.
Con.....ya, it says not found 
|
|
|
08-11-2003, 02:30 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-11-2003, 02:39 AM
|
#7
|
Member
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162
Original Poster
Rep:
|
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.
|
|
|
08-11-2003, 02:46 AM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
08-11-2003, 02:50 AM
|
#9
|
Member
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162
Original Poster
Rep:
|
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.
|
|
|
08-11-2003, 02:51 AM
|
#10
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Okay, the daemon and client are seperate here:
urpmi opensshd
After to start it:
/etc/init.d/sshd
Cool
|
|
|
08-11-2003, 02:59 AM
|
#11
|
Member
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162
Original Poster
Rep:
|
Well, it's all installed, but like I mentioned above, there are no host keys.....any idea how to generate them?
|
|
|
08-11-2003, 03:01 AM
|
#12
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
/etc/init.d/sshd start
It's all done for you
Cool
|
|
|
08-11-2003, 03:07 AM
|
#13
|
Member
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162
Original Poster
Rep:
|
Just rebooted and it's all set  THANKS A TON!!!!!
|
|
|
08-11-2003, 03:15 AM
|
#14
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
You're welcome, glad I could help
Cool
|
|
|
All times are GMT -5. The time now is 12:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|