create '~/.ssh/known_hosts' within proper context
This commit is contained in:
parent
4c3bf78194
commit
9d2e7c5315
12
openssh-5.1p1-selabel.patch
Normal file
12
openssh-5.1p1-selabel.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up openssh-5.2p1/contrib/ssh-copy-id.selabel openssh-5.2p1/contrib/ssh-copy-id
|
||||||
|
--- openssh-5.2p1/contrib/ssh-copy-id.selabel 2009-06-29 23:43:03.514390092 +0200
|
||||||
|
+++ openssh-5.2p1/contrib/ssh-copy-id 2009-06-29 23:44:11.188382120 +0200
|
||||||
|
@@ -38,7 +38,7 @@ if [ "$#" -lt 1 ] || [ "$1" = "-h" ] ||
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
-{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1
|
||||||
|
+{ eval "$GET_ID" ; } | ssh $1 "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys; test -x /sbin/restorecon && /sbin/restorecon .ssh .ssh/authorized_keys" || exit 1
|
||||||
|
|
||||||
|
cat <<EOF
|
||||||
|
Now try logging into the machine, with "ssh '$1'", and check in:
|
@ -63,7 +63,7 @@
|
|||||||
Summary: The OpenSSH implementation of SSH protocol versions 1 and 2
|
Summary: The OpenSSH implementation of SSH protocol versions 1 and 2
|
||||||
Name: openssh
|
Name: openssh
|
||||||
Version: 5.1p1
|
Version: 5.1p1
|
||||||
Release: 3%{?dist}%{?rescue_rel}
|
Release: 4%{?dist}%{?rescue_rel}
|
||||||
URL: http://www.openssh.com/portable.html
|
URL: http://www.openssh.com/portable.html
|
||||||
#Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
#Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
||||||
#Source1: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz.asc
|
#Source1: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz.asc
|
||||||
@ -98,6 +98,7 @@ Patch55: openssh-5.1p1-cloexec.patch
|
|||||||
Patch62: openssh-5.1p1-scp-manpage.patch
|
Patch62: openssh-5.1p1-scp-manpage.patch
|
||||||
Patch63: openssh-5.1p1-bannerlen.patch
|
Patch63: openssh-5.1p1-bannerlen.patch
|
||||||
Patch64: openssh-5.1p1-compat-sessions.patch
|
Patch64: openssh-5.1p1-compat-sessions.patch
|
||||||
|
Patch65: openssh-5.1p1-selabel.patch
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
@ -231,6 +232,7 @@ an X11 passphrase dialog for OpenSSH.
|
|||||||
%patch62 -p1 -b .manpage
|
%patch62 -p1 -b .manpage
|
||||||
%patch63 -p1 -b .bannerlen
|
%patch63 -p1 -b .bannerlen
|
||||||
%patch64 -p1 -b .compat-sessions
|
%patch64 -p1 -b .compat-sessions
|
||||||
|
%patch65 -p1 -b .selabel
|
||||||
|
|
||||||
autoreconf
|
autoreconf
|
||||||
|
|
||||||
@ -482,6 +484,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 30 2009 Jan F. Chadima <jchadima@redhat.com> 5.1p1-4
|
||||||
|
- create '~/.ssh/known_hosts' within proper context
|
||||||
|
|
||||||
* Fri Oct 17 2008 Tomas Mraz <tmraz@redhat.com> - 5.1p1-3
|
* Fri Oct 17 2008 Tomas Mraz <tmraz@redhat.com> - 5.1p1-3
|
||||||
- fix compatibility with some servers (#466818)
|
- fix compatibility with some servers (#466818)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user