Create include directory with example content (redhat modifications)
This commit is contained in:
parent
334feb284c
commit
6454089e75
@ -2,21 +2,32 @@ diff --git a/ssh_config b/ssh_config
|
|||||||
index 49a4f6c..3f83c40 100644
|
index 49a4f6c..3f83c40 100644
|
||||||
--- a/ssh_config
|
--- a/ssh_config
|
||||||
+++ b/ssh_config
|
+++ b/ssh_config
|
||||||
@@ -46,3 +46,19 @@
|
@@ -46,3 +46,7 @@
|
||||||
# VisualHostKey no
|
# VisualHostKey no
|
||||||
# ProxyCommand ssh -q -W %h:%p gateway.example.com
|
# ProxyCommand ssh -q -W %h:%p gateway.example.com
|
||||||
# RekeyLimit 1G 1h
|
# RekeyLimit 1G 1h
|
||||||
+#
|
+#
|
||||||
|
+# To modify the system-wide ssh configuration, create a file under
|
||||||
|
+# /etc/ssh/ssh_config.d/ which will get automatically included below
|
||||||
|
+Include /etc/ssh/ssh_config.d/*.conf
|
||||||
|
diff --git a/ssh_config.redhat b/ssh_config.redhat
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..9082a13
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/ssh_config.redhat
|
||||||
|
@@ -0,0 +1,17 @@
|
||||||
+# Uncomment this if you want to use .local domain
|
+# Uncomment this if you want to use .local domain
|
||||||
+# Host *.local
|
+# Host *.local
|
||||||
+# CheckHostIP no
|
+# CheckHostIP no
|
||||||
+
|
+
|
||||||
+Host *
|
+Host *
|
||||||
+ GSSAPIAuthentication yes
|
+ GSSAPIAuthentication yes
|
||||||
|
+
|
||||||
+# If this option is set to yes then remote X11 clients will have full access
|
+# If this option is set to yes then remote X11 clients will have full access
|
||||||
+# to the original X11 display. As virtually no X11 client supports the untrusted
|
+# to the original X11 display. As virtually no X11 client supports the untrusted
|
||||||
+# mode correctly we set this to yes.
|
+# mode correctly we set this to yes.
|
||||||
+ ForwardX11Trusted yes
|
+ ForwardX11Trusted yes
|
||||||
|
+
|
||||||
+# Send locale-related environment variables
|
+# Send locale-related environment variables
|
||||||
+ SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
|
+ SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
|
||||||
+ SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
|
+ SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
|
||||||
|
@ -625,6 +625,7 @@ make tests
|
|||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh
|
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh
|
||||||
|
mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh/ssh_config.d
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_libexecdir}/openssh
|
mkdir -p -m755 $RPM_BUILD_ROOT%{_libexecdir}/openssh
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/empty/sshd
|
mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/empty/sshd
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
@ -637,6 +638,7 @@ install -d $RPM_BUILD_ROOT%{_libdir}/fipscheck
|
|||||||
install -m644 %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/sshd
|
install -m644 %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/sshd
|
||||||
install -m644 %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/ssh-keycat
|
install -m644 %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/ssh-keycat
|
||||||
install -m644 %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/sshd
|
install -m644 %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/sshd
|
||||||
|
install -m644 ssh_config.redhat $RPM_BUILD_ROOT/etc/ssh/ssh_config.d/05-redhat.conf
|
||||||
install -d -m755 $RPM_BUILD_ROOT/%{_unitdir}
|
install -d -m755 $RPM_BUILD_ROOT/%{_unitdir}
|
||||||
install -m644 %{SOURCE9} $RPM_BUILD_ROOT/%{_unitdir}/sshd@.service
|
install -m644 %{SOURCE9} $RPM_BUILD_ROOT/%{_unitdir}/sshd@.service
|
||||||
install -m644 %{SOURCE10} $RPM_BUILD_ROOT/%{_unitdir}/sshd.socket
|
install -m644 %{SOURCE10} $RPM_BUILD_ROOT/%{_unitdir}/sshd.socket
|
||||||
@ -716,6 +718,8 @@ getent passwd sshd >/dev/null || \
|
|||||||
%attr(0755,root,root) %{_bindir}/scp
|
%attr(0755,root,root) %{_bindir}/scp
|
||||||
%attr(0644,root,root) %{_mandir}/man1/scp.1*
|
%attr(0644,root,root) %{_mandir}/man1/scp.1*
|
||||||
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config
|
||||||
|
%dir %attr(0644,root,root) %{_sysconfdir}/ssh/ssh_config.d/
|
||||||
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config.d/05-redhat.conf
|
||||||
%attr(0644,root,root) %{_mandir}/man5/ssh_config.5*
|
%attr(0644,root,root) %{_mandir}/man5/ssh_config.5*
|
||||||
%if ! %{rescue}
|
%if ! %{rescue}
|
||||||
%attr(0755,root,root) %{_bindir}/ssh-agent
|
%attr(0755,root,root) %{_bindir}/ssh-agent
|
||||||
|
Loading…
Reference in New Issue
Block a user