source: server/other/openssh/openssh-config.xml@ 1708d1e9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1708d1e9 was 1708d1e9, checked in by Larry Lawrence <larry@…>, 21 years ago

update openssh

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

  • Property mode set to 100644
File size: 2.5 KB
Line 
1<sect2>
2<title>Configuring <application>Open<acronym>SSH</acronym></application></title>
3
4<sect3><title>Config files</title>
5
6<para><filename>/etc/ssh/ssh_config</filename>,
7<filename>/etc/ssh/sshd_config </filename></para>
8<para>There are no required changes in either of these files. However
9you may wish to view them to make changes for appropriate security to
10your system. Configuration information can be found in the man pages for
11<command>sshd</command>, <command>ssh</command> and <command>ssh-agent
12</command></para>
13</sect3>
14
15<sect3><title>sshd init.d script</title>
16
17<para>Note that you only want to start the <command>sshd</command> server if
18you want to be able to <command>ssh</command> <emphasis>into</emphasis> your
19machine. The <command>ssh</command> client doesn't need this script to be
20used. Having said that, if you want to run the <command>ssh</command> daemon,
21the <command>sshd</command> init.d script can be created using the following
22commands:</para>
23
24<screen><userinput><command>cat &gt; /etc/rc.d/init.d/sshd &lt;&lt; "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
31source /etc/sysconfig/rc
32source $rc_functions
33
34case "$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 ;;
64esac
65
66# End $rc_base/init.d/sshd
67<command>EOF
68chmod 755 /etc/rc.d/init.d/sshd</command></userinput></screen>
69
70<para>Create the symbolic links to this file in the relevant <filename
71class="directory">rc.d</filename> directories with the following
72commands:</para>
73<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
74ln -sf ../init.d/sshd ../rc0.d/K30sshd &amp;&amp;
75ln -sf ../init.d/sshd ../rc1.d/K30sshd &amp;&amp;
76ln -sf ../init.d/sshd ../rc2.d/K30sshd &amp;&amp;
77ln -sf ../init.d/sshd ../rc3.d/S30sshd &amp;&amp;
78ln -sf ../init.d/sshd ../rc4.d/S30sshd &amp;&amp;
79ln -sf ../init.d/sshd ../rc5.d/S30sshd &amp;&amp;
80ln -sf ../init.d/sshd ../rc6.d/K30sshd</command></userinput></screen>
81
82</sect3>
83
84</sect2>
85
Note: See TracBrowser for help on using the repository browser.