Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: start: Unknown job: ssh

  1. #1
    Join Date
    Apr 2009
    Beans
    48

    start: Unknown job: ssh

    I do "sudo apt-get install openssh-server" and after all the keys are generated I get "start: Unknown job: ssh".

    I do "service ssh start" and get the same thing.

    I do "sudo apt-get --purge remove openssh-server" and try to reinstall it and get the same thing.

    Any ideas?

  2. #2
    Join Date
    Dec 2007
    Location
    Netherlands
    Beans
    178
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: start: Unknown job: ssh

    The ssh server process is called sshd. ssh is the client.
    The server normally starts itself on reboot. You could run:

    Code:
    ps ax | grep sshd
    to check if it's running.

    Is the openssh-client package installed? (normally should be on a regular install)
    LPIC-2 Certified, which doesn't mean I'm a guru.

    All advice is given to the best of my knowledge but without any guarantee that it will work (in your case). (And I don't provide support via Private Messages.)

  3. #3
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: start: Unknown job: ssh

    Hi

    Is the ssh server package installing itself correctly. What's the output of

    Code:
    dpkg -l openssh-server
    That is a small L after dpkg.

    Also what is the output of

    Code:
    ls /etc/init/ss*
    EDIT

    I do "service ssh start" and get the same thing.
    That would require a sudo service ssh start comand.

    Kind regards
    Last edited by matt_symes; December 14th, 2011 at 02:46 PM.
    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?

  4. #4
    Join Date
    Apr 2009
    Beans
    48

    Re: start: Unknown job: ssh

    Output of ps ax | grep sshd
    Code:
     6985 pts/0       0:00 grep --color=auto sshd
    Output of dpkg -l openssh-server

    Code:
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name           Version        Description
    +++-==============-==============-============================================
    ii  openssh-server 1.5.9p1-7ubunt secure shell (SSH) server, for secure access
    Output of ls /etc/init/ss*

    Code:
    /etc/init/ssh.conf

  5. #5
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: start: Unknown job: ssh

    Hi

    What is the output of

    Code:
    ls -l /etc/init/ssh.conf
    Code:
    cat /etc/init/ssh.conf
    and

    Code:
    which sshd
    To see you system

    Code:
    cat /etc/lsb-release
    Code:
    uname -a
    Kind regards
    Last edited by matt_symes; December 15th, 2011 at 01:59 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?

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

    Re: start: Unknown job: ssh

    Does /etc/init.d/ssh exist?

  7. #7
    Join Date
    Apr 2009
    Beans
    48

    Re: start: Unknown job: ssh

    ls -l /etc/init/ssh.conf
    Code:
    -rw-r--r-- 1 root root 574 2011-04-02 10:06 /etc/init/ssh.conf
    cat /etc/init/ssh.conf
    Code:
    # ssh - OpenBSD Secure Shell Server
    #
    # The OpenSSH server provides secure shell access to the system.
    
    description    "OpenSSH server"
    
    start on filesystem or runlevel [2345]
    stop on runlevel [!2345]
    
    respawn
    respawn limit 10 5
    umask 022
    
    pre-start script
        test -x /usr/sbin/sshd || { stop; exit 0; }
        test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; }
        test -c /dev/null | { stop; exit 0; }
    
        mkdir -p -m0755 /var/run/sshd
    end script
    
    # if you used to set SSHD_OPTS in /etc/default/ssh, you can change the
    # 'exec' line here instead
    exec /usr/sbin/sshd -D
    which sshd
    Code:
    /usr/sbin/sshd
    cat /etc/lsb-release
    Code:
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=11.10
    DISTRIB_CODENAME=oneiric
    DISTRIB_DESCRIPTION="Ubuntu 11.10"
    uname -a
    Code:
    Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64
    x86_64 x86_64 GNU/Linux
    ls /etc/init.d/ssh
    Code:
    -rwxr-xr-x 1 root root 4194 2011-07-29 16:02 /etc/init.d/ssh

  8. #8
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: start: Unknown job: ssh

    Hi

    That all looks fine so far.

    What's the output of

    Code:
    ls -l /usr/sbin/sshd
    and

    Code:
    ls /etc/ssh/sshd_not_to_be_run
    Was the ssh you installed from the main repositories for Oneiric ? Your version number looks different to mine.

    Can you start the service without using upstart ? What happens if you type

    Code:
    sudo /etc/init.d/ssh start
    You can also stop it with

    Code:
    sudo /etc/init.d/ssh stop
    Do you get any feedback if you type

    Code:
    sudo initctl start ssh
    Kind regards
    Last edited by matt_symes; December 15th, 2011 at 10:56 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?

  9. #9
    Join Date
    Apr 2009
    Beans
    48

    Re: start: Unknown job: ssh

    ls -l /usr/sbin/sshd
    Code:
    -rwxr-xr-x 1 root root 508760 2011-07-29 16:02 /usr/sbin/sshd
    ls /etc/ssh/sshd_not_to_be_run
    Code:
    ls: cannot access /etc/ssh/sshd_not_to_be_run: No such file or directory
    sudo /etc/init.d/ssh start
    Code:
    Rather than invoking init scripts through /etc/init.d, use the service(8)
    utility, e.g. service ssh start
    
    Since the script you are attempting to invoke has been converted to an
    Upstart job, you may also use the start(8) utility, e.g. start ssh
    start: Unknown job: ssh
    sudo initctl start ssh
    Code:
    initctl: Unkwown job: ssh

  10. #10
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: start: Unknown job: ssh

    Hi

    That all looks good as well.

    What's the output of

    Code:
    initctl list | grep ssh
    and

    Code:
    ldd /usr/sbin/sshd
    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?

Page 1 of 2 12 LastLast

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
  •