[Bug 1015348] Re: openssh-server package does not start sshd on a live CD boot

Thomi Richards 1015348 at bugs.launchpad.net
Tue Jun 19 23:59:11 UTC 2012


FWIW you can get it to work manually with a bit of fiddling:


ubuntu at ubuntu:~$ sudo /usr/sbin/sshd 
Missing privilege separation directory: /var/run/sshd
ubuntu at ubuntu:~$ sudo mkdir /var/run/sshd
ubuntu at ubuntu:~$ sudo /usr/sbin/sshd 
ubuntu at ubuntu:~$ netstat -nlt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1015348

Title:
  openssh-server package does not start sshd on a live CD boot

Status in “openssh” package in Ubuntu:
  New

Bug description:
  When booting into a live CD image (either quantal or precise),
  installing the openssh-server package does not start the ssh daemon. I
  get the following output while installing the package:

  Preconfiguring packages ...
  Selecting previously unselected package openssh-server.
  (Reading database ... 154905 files and directories currently installed.)
  Unpacking openssh-server (from .../openssh-server_1%3a6.0p1-1ubuntu1_i386.deb) ...
  Selecting previously unselected package ssh-import-id.
  Unpacking ssh-import-id (from .../ssh-import-id_2.12-0ubuntu1_all.deb) ...
  Processing triggers for ureadahead ...
  Processing triggers for ufw ...
  Processing triggers for man-db ...
  Setting up openssh-server (1:6.0p1-1ubuntu1) ...
  Creating SSH2 RSA key; this may take some time ...
  Creating SSH2 DSA key; this may take some time ...
  Creating SSH2 ECDSA key; this may take some time ...
  initctl: Unknown job: ssh
  start: Unknown job: ssh
  Setting up ssh-import-id (2.12-0ubuntu1) ...

  
  Trying to start it manually produces the same result:

  ubuntu at ubuntu:~$ sudo start ssh
  start: Unknown job: ssh
  ubuntu at ubuntu:~$ sudo /etc/init.d/ssh start
  Rather than invoking init scripts through /etc/init.d, use the service(8)
  utility, e.g. service ssh start
  initctl: Unknown job: ssh

  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1015348/+subscriptions




More information about the foundations-bugs mailing list