Find the answer to your Linux question:
Results 1 to 5 of 5
I recently bought a new computer, so I turned my old one into a Linux box, for the time being. I installed the newest version of OpenSSH on it a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Posts
    2

    sshd won't start in slackware


    I recently bought a new computer, so I turned my old one into a Linux box, for the time being. I installed the newest version of OpenSSH on it a few days ago so I could run sshd on it, but I can't get the daemon to start. I typed "/etc/rc.d/rc.sshd start" and it didn't display any message so I assumed it worked. When I ran "ssh 127.0.0.1" it said "connection refused," so I nmapped myself and apparently port 22 is closed. I tried killing all sshd processes completely by doing "killall -HUP sshd" and it said "no processes killed." It says the same thing ("no processes killed") when I do "/etc/rc.d/rc.sshd restart." Why isn't the daemon even starting?

  2. #2
    Linux User eugrus's Avatar
    Join Date
    Dec 2004
    Location
    Russia
    Posts
    391
    Code:
    /sbin/service sshd start
    Russian UNIX Forums
    http://eugrus.pp.ru

  3. #3
    Just Joined!
    Join Date
    May 2005
    Location
    NJ, USA
    Posts
    17
    Quote Originally Posted by eugrus
    Code:
    /sbin/service sshd start
    Dude, this does not work in Slackware...


    try just running the sshd command to see if you get any msgs then...
    Code:
    #/usr/sbin/sshd
    Then post them on here...

  4. #4
    Just Joined!
    Join Date
    Jun 2005
    Posts
    2
    No messages when I try that either, but it still doesn't start. Running it as root gives me:
    Code:
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0644 for '/etc/ssh/ssh_host_key' are too open.
    It is recommended that your private key files are NOT accessible by others.
    This private key will be ignored.
    bad permissions: ignore key: /etc/ssh/ssh_host_key
    Could not load host key: /etc/ssh/ssh_host_key
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0644 for '/etc/ssh/ssh_host_rsa_key' are too open.
    It is recommended that your private key files are NOT accessible by others.
    This private key will be ignored.
    bad permissions: ignore key: /etc/ssh/ssh_host_rsa_key
    Could not load host key: /etc/ssh/ssh_host_rsa_key
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0644 for '/etc/ssh/ssh_host_dsa_key' are too open.
    It is recommended that your private key files are NOT accessible by others.
    This private key will be ignored.
    bad permissions: ignore key: /etc/ssh/ssh_host_dsa_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.
    Needless to say, it doesn't start after it says all that stuff.

    I dunno if this helps or not, but sshd worked just a few days ago. I started it using
    Code:
    /etc/rc.d/rc.sshd start
    and it ran flawlessly. I had to turn the computer off yesterday and after I turned it back on, sshd stopped working.

  5. #5
    Just Joined!
    Join Date
    May 2005
    Location
    NJ, USA
    Posts
    17
    Have you tried actually changing the permission on these 3 files to RW for root?
    Code:
    #chmod 600 [file_name]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •