Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Sshd does not exist in /etc/rc.d or the local startup directories

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 2 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      arriflex
      last edited by

      In-place upgrade to 2.2-RELEASE (i386) built on Thu Jan 22 14:04:25 CST 2015 on an APU4

      sshd is not starting up after having upgraded in place. No errors present for sshd that I can find, yet the service remains stopped even after cycling the gui checkbox, gui service status "play" button, and the console option 14. When using the prompt from the serial console to check the status of sshd I find:

      /root: service sshd status
      sshd does not exist in /etc/rc.d or the local startup
      directories (/usr/local/etc/rc.d)
      

      This seems to be the smoking gun and potentially where my issue differs from previous threads. I'm not sure why the sshd would have gotten wiped out from rc.d, and what the best method of putting it back would be.

      Other things I checked:
      Per this thread: https://forum.pfsense.org/index.php?topic=87548.0 I tried working from the console option 14 cycling through the enable/disable options and rebooting in between. FYI, my console displays "Enable Secure Shell (sshd)" during both expected states (enabled and not) although that could be because sshd never actually starts; I'll check again if I can ever actually get it running.

      I also verified the new certs were generated (although no logs suggested this was an issue) and in place per this thread: https://forum.pfsense.org/index.php?topic=87750.msg482586#msg482586

      Here is a listing of my ssh directory:

      $ ls -ahl /etc/ssh/
      total 600
      drwxr-xr-x   2 root  wheel   512B Feb  8 09:00 .
      drwxr-xr-x  29 root  wheel   4.5K Feb  9 09:36 ..
      -rw-r--r--   1 root  wheel   236K Jan 22 13:07 moduli
      -rw-r--r--   1 root  wheel   1.6K Jan 22 13:07 ssh_config
      -rw-------   1 root  wheel   668B Jan 12 14:42 ssh_host_dsa_key
      -rw-r--r--   1 root  wheel   610B Jan 12 14:42 ssh_host_dsa_key.pub
      -rw-------   1 root  wheel   227B Jan 12 14:42 ssh_host_ecdsa_key
      -rw-r--r--   1 root  wheel   182B Jan 12 14:42 ssh_host_ecdsa_key.pub
      -rw-------   1 root  wheel   411B Jan 12 14:42 ssh_host_ed25519_key
      -rw-r--r--   1 root  wheel   102B Jan 12 14:42 ssh_host_ed25519_key.pub
      -rw-------   1 root  wheel   985B Jan 12 14:42 ssh_host_key
      -rw-r--r--   1 root  wheel   650B Jan 12 14:42 ssh_host_key.pub
      -rw-------   1 root  wheel   1.6K Jan 12 14:42 ssh_host_rsa_key
      -rw-r--r--   1 root  wheel   402B Jan 12 14:42 ssh_host_rsa_key.pub
      -rw-r--r--   1 root  wheel   445B Feb  8 09:02 sshd_config
      

      syslog filtered for "ssh":

      Feb 9 08:43:43	php-fpm[37799]: /system_advanced_admin.php: secure shell configuration has changed. Stopping sshd.
      Feb 9 08:45:22	sshlockout[44879]: sshlockout/webConfigurator v3.0 starting up
      Feb 9 08:45:37	sshlockout[24389]: sshlockout/webConfigurator v3.0 starting up
      Feb 9 08:47:20	php-fpm[5774]: /system_advanced_admin.php: secure shell configuration has changed. Stopping sshd.
      Feb 9 08:47:20	php-fpm[5774]: /system_advanced_admin.php: secure shell configuration has changed. Restarting sshd.
      Feb 9 08:53:19	sshlockout[78467]: sshlockout/webConfigurator v3.0 starting up
      Feb 9 09:00:29	sshlockout[41640]: sshlockout/webConfigurator v3.0 starting up
      Feb 9 09:00:33	sshlockout[5321]: sshlockout/webConfigurator v3.0 starting up
      Feb 9 09:36:20	sshlockout[91027]: sshlockout/webConfigurator v3.0 starting up
      Feb 9 09:36:57	php-fpm[12253]: /system_advanced_admin.php: secure shell configuration has changed. Stopping sshd.
      Feb 9 09:36:57	php-fpm[12253]: /system_advanced_admin.php: secure shell configuration has changed. Restarting sshd.
      

      arri

      1 Reply Last reply Reply Quote 0
      • D Offline
        doktornotor Banned
        last edited by

        Do a fresh install and restore configuration backup.

        1 Reply Last reply Reply Quote 0
        • A Offline
          arriflex
          last edited by

          Thanks, that gave me an excuse to move to the 64 bit install. Everything went smoothly and populated /etc/rc.d appropriately.

          arri

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.