Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: start: Unknown job: ssh

  1. #11
    Join Date
    Apr 2009
    Beans
    48

    Re: start: Unknown job: ssh

    initctl list | grep ssh returns nothing.

    ldd /usr/sbin/sshd:

    Code:
    	linux-vdso.so.1 =>  (0x00007ffff65ff000)
    	libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f6cd9d58000)
    	libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007f6cd9b4a000)
    	libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f6cd992b000)
    	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6cd970e000)
    	libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f6cd935f000)
    	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f6cd915b000)
    	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f6cd8f43000)
    	libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f6cd8d0a000)
    	libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f6cd8acb000)
    	libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f6cd8802000)
    	libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f6cd85fe000)
    	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6cd825e000)
    	libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f6cd8044000)
    	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6cd7e40000)
    	/lib64/ld-linux-x86-64.so.2 (0x00007f6cda1f7000)
    	libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f6cd7c17000)
    	libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f6cd7a0f000)
    	libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f6cd780c000)
    	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f6cd75f0000)

  2. #12
    Join Date
    May 2010
    Location
    uk
    Beans
    9,299
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: start: Unknown job: ssh

    Hi

    initctl list | grep ssh returns nothing.
    Well everything looks fine apart from this. Upstart knows nothing about your ssh service.

    The only thing i can think of at the moment is that upstart is not picking up the configuration file ssh.conf in /etc/init. It is meant to do this automatically using inotify.

    From man initctl.
    Code:
    reload-configuration
    
                  Requests that the init(8) daemon reloads its configuration.
    
                  This  command  is generally not necessary since init(8) watches its configuration directories with inotify(7) and auto‐
                  matically reloads in cases of changes.
    
                  No jobs will be started by this command.
    Let's try to reload manually. From a terminal

    Code:
    sudo initctl reload-configuration
    and then

    Code:
    sudo service ssh start
    Kind regards
    Last edited by matt_symes; December 16th, 2011 at 11:36 AM.
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  3. #13
    Join Date
    Mar 2008
    Location
    Fond du Lac, Wisconsin
    Beans
    72
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: start: Unknown job: ssh

    This is likely a bug because I just tried installing and running sshd on my computer as well, and I ran into the same issue, and after running initctl reload-configuration, I'm still getting start: unrecognized service.

    A bug report should probably be filed. I tried finding a relevant bug report on Launchpad, but I couldn't find anything in my initial search. I am going to keep on looking, though.

    Ignore this, I just realized I was using service incorrectly (I had service start ssh instead of service ssh start), sorry.
    Last edited by supercheetah; December 17th, 2011 at 10:25 AM. Reason: I ran the command incorrectly.

  4. #14
    Join Date
    May 2010
    Location
    uk
    Beans
    9,299
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: start: Unknown job: ssh

    Hi

    @supercheetah. Did reloading the configuration work for you ?

    Quote Originally Posted by supercheetah View Post
    This is likely a bug because I just tried installing and running sshd on my computer as well, and I ran into the same issue, and after running initctl reload-configuration, I'm still getting start: unrecognized service.

    A bug report should probably be filed. I tried finding a relevant bug report on Launchpad, but I couldn't find anything in my initial search. I am going to keep on looking, though.

    Ignore this, I just realized I was using service incorrectly (I had service start ssh instead of service ssh start), sorry.
    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  5. #15
    Join Date
    Mar 2008
    Location
    Fond du Lac, Wisconsin
    Beans
    72
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: start: Unknown job: ssh

    Quote Originally Posted by matt_symes View Post
    Hi

    @supercheetah. Did reloading the configuration work for you ?



    Kind regards
    It was kind of pointless for me since there were no issues.

    One thing that I thought about though is I wonder if there was a problem with the package that was downloaded, and so thus openssh-server may have been installed incorrectly. Try this:

    Code:
    apt-get --purge remove openssh-server
    apt-get clean
    apt-get install openssh-server
    It's perhaps a long shot, but...

  6. #16
    Join Date
    Feb 2010
    Beans
    3

    Re: start: Unknown job: ssh

    Quote Originally Posted by matt_symes View Post
    Hi

    @supercheetah. Did reloading the configuration work for you ?



    Kind regards
    Hello, I had the same problem and did everything in this thread. After reloading the configuration as you suggested the ssh service started and is working. Thank you for the help.
    I'm running a 11.10 live cd off USB with a casper-rw. Thanks again.

  7. #17
    Join Date
    Aug 2010
    Beans
    1

    Re: start: Unknown job: ssh

    [edited] thought i had the solution, but i was wrong. (12.04)
    Last edited by sfinktah; August 24th, 2012 at 04:24 PM.

  8. #18
    Join Date
    Aug 2012
    Beans
    1

    Re: start: Unknown job: ssh

    I just had this problem. The problem was that the value in
    Code:
    hostname
    was not in
    Code:
    /etc/hosts
    with 127.0.0.1 assigned.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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