source: server/other/openssh/openssh-config.xml@ 677a0f7

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 v1_0 v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 677a0f7 was 677a0f7, checked in by Larry Lawrence <larry@…>, 21 years ago

updated to samba-2.2.8

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@824 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.2 KB
Line 
1<sect2>
2<title>Configuring OpenSSH</title>
3
4<sect3><title>Config files</title>
5
6<para><userinput>/etc/ssh/ssh_config</userinput>, <userinput>/etc/ssh/sshd_config </userinput></para>
7<para>There are no required changes in either of these files. However
8you may wish to view them to make changes for appropriate security to
9your system. Configuration information can be found in the man pages for sshd, ssh and ssh-agent</para>
10</sect3>
11
12<sect3><title>sshd init.d script</title>
13
14<para>Note that you only want to start the sshd server if you want to be
15able to ssh <emphasis>into</emphasis> your machine. The ssh client
16doesn't need this script to be used. Having said that, if you want to
17run the ssh daemon, the sshd init.d script can be created using the following
18commands:</para>
19
20<para><screen><userinput>cat &gt; /etc/rc.d/init.d/sshd &lt;&lt; "EOF"</userinput>
21#!/bin/sh
22# Begin $rc_base/init.d/sshd
23
24# Based on sysklogd script from LFS-3.1 and earlier.
25# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
26
27source /etc/sysconfig/rc
28source $rc_functions
29
30case "$1" in
31 start)
32 echo "Starting SSH Server..."
33 loadproc /usr/sbin/sshd
34 ;;
35
36 stop)
37 echo "Stopping SSH Server..."
38 killproc /usr/sbin/sshd
39 ;;
40
41 reload)
42 echo "Reloading SSH Server..."
43 reloadproc /usr/sbin/sshd
44 ;;
45
46 restart)
47 $0 stop
48 sleep 1
49 $0 start
50 ;;
51
52 status)
53 statusproc /usr/sbin/sshd
54 ;;
55
56 *)
57 echo "Usage: $0 {start|stop|reload|restart|status}"
58 exit 1
59 ;;
60esac
61
62# End $rc_base/init.d/sshd
63<userinput>EOF
64chmod 755 /etc/rc.d/init.d/sshd</userinput></screen></para>
65
66<para>Create the symbolic links to this file in the relevant rc.d directories with the following commands:
67<screen><userinput>cd /etc/rc.d/init.d &amp;&amp;
68ln -sf ../init.d/sshd ../rc0.d/K30sshd &amp;&amp;
69ln -sf ../init.d/sshd ../rc1.d/K30sshd &amp;&amp;
70ln -sf ../init.d/sshd ../rc2.d/K30sshd &amp;&amp;
71ln -sf ../init.d/sshd ../rc3.d/S30sshd &amp;&amp;
72ln -sf ../init.d/sshd ../rc4.d/S30sshd &amp;&amp;
73ln -sf ../init.d/sshd ../rc5.d/S30sshd &amp;&amp;
74ln -sf ../init.d/sshd ../rc6.d/K30sshd</userinput></screen></para>
75
76</sect3>
77
78</sect2>
79
Note: See TracBrowser for help on using the repository browser.