Changeset ae9c528 for server/other/openssh
- Timestamp:
- 03/28/2004 01:46:42 AM (20 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- fe88f584
- Parents:
- ff023d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/other/openssh/openssh-config.xml
rff023d1 rae9c528 15 15 <sect3><title>sshd init.d script</title> 16 16 17 <para>Note that you only want to start the <command>sshd</command> server if 18 you want to be able to <command>ssh</command> <emphasis>into</emphasis> your 19 machine. The <command>ssh</command> client doesn't need this script to be 20 used. Having said that, if you want to run the <command>ssh</command> daemon, 21 the <application>Open<acronym>SSH</acronym></application> daemon init.d script can be created using the following 22 commands:</para> 23 24 <screen><userinput><command>cat > /etc/rc.d/init.d/sshd << "EOF"</command> 25 #!/bin/sh 26 # Begin $rc_base/init.d/sshd 27 28 # Based on sysklogd script from LFS-3.1 and earlier. 29 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org 30 31 . /etc/sysconfig/rc 32 . $rc_functions 33 34 case "$1" in 35 start) 36 echo "Starting SSH Server..." 37 loadproc /usr/sbin/sshd 38 ;; 39 40 stop) 41 echo "Stopping SSH Server..." 42 killproc /usr/sbin/sshd 43 ;; 44 45 reload) 46 echo "Reloading SSH Server..." 47 reloadproc /usr/sbin/sshd 48 ;; 49 50 restart) 51 $0 stop 52 sleep 1 53 $0 start 54 ;; 55 56 status) 57 statusproc /usr/sbin/sshd 58 ;; 59 60 *) 61 echo "Usage: $0 {start|stop|reload|restart|status}" 62 exit 1 63 ;; 64 esac 65 66 # End $rc_base/init.d/sshd 67 <command>EOF 68 chmod 755 /etc/rc.d/init.d/sshd</command></userinput></screen> 69 70 <para>Create the symbolic links to this file in the relevant <filename 71 class="directory">rc.d</filename> directories with the following 72 commands:</para> 73 <screen><userinput><command>cd /etc/rc.d/init.d && 74 ln -sf ../init.d/sshd ../rc0.d/K30sshd && 75 ln -sf ../init.d/sshd ../rc1.d/K30sshd && 76 ln -sf ../init.d/sshd ../rc2.d/K30sshd && 77 ln -sf ../init.d/sshd ../rc3.d/S30sshd && 78 ln -sf ../init.d/sshd ../rc4.d/S30sshd && 79 ln -sf ../init.d/sshd ../rc5.d/S30sshd && 80 ln -sf ../init.d/sshd ../rc6.d/K30sshd</command></userinput></screen> 17 <para>To start the SSH Server at boot, install <filename>/etc/rc.d/init.d/sshd</filename> 18 init script included in the <xref linkend="intro-important-bootscripts"/> package.</para> 19 20 <screen><userinput><command>make install-sshd</command></userinput></screen> 81 21 82 22 </sect3>
Note:
See TracChangeset
for help on using the changeset viewer.