Advertisement: Linux VPS for $4/month - based on OpenVZ, credit card accepted, automatic setup.
+ Post New Thread
Results 1 to 2 of 2

Thread: How to start ssh or other service at boot (Debian , Ubuntu)

  1. #1
    Administrator Fli's Avatar
    Join Date
    Mar 2013
    Posts
    2,427
    Post Thanks / Like
    Blog Entries
    1

    How to start ssh or other service at boot (Debian , Ubuntu)



    How on Debian based Linux (ubuntu) one can make service start at boot/restart?

    I found this command:

    ln -s /etc/init.d/ssh /etc/rc2.d/S18ssh

    It is applicable for SSH

    also there is command:

    update-rc.d ssh defaults

    but it told me:
    "update-rc.d: warning: ssh stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)"
    so i tried above mentioned command (making symbolic link) instead

  2. #2
    Junior Member gexacor's Avatar
    Join Date
    Jul 2016
    Posts
    4
    Post Thanks / Like


    Is this useful / helpfull? Yes | No
    You need to edit '/etc/init.d/ssh' file and check if runlevel 6 included at both start and stop values.
    That means that your service will be stopped and the begin of reboot and started after reboot.

    Then you need to run 'update-rc.d ssh defaults'

+ Post New Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 Protected by : ZB BLOCK  &  StopForumSpam