Docker容器配置SSH服务

2016-12-14 14:52:00
村里来的扫地僧
原创
2090
安装ssh服务
[root@f9be7c6c1a52 /]# yum install openssh-server -y
Loaded plugins: fastestmirror
Setting up Install Process
base                                                                                                                         | 3.7 kB     00:00     
base/primary_db                                                                                                              | 4.6 MB     00:02     
extras                                                                                                                       | 3.4 kB     00:00     
extras/primary_db                                                                                                            |  34 kB     00:00     
updates                                                                                                                      | 3.4 kB     00:00     
updates/primary_db                                                                                                           | 4.6 MB     00:13     
Resolving Dependencies
--> Running transaction check
---> Package openssh-server.i686 0:5.3p1-112.el6_7 will be updated
---> Package openssh-server.x86_64 0:5.3p1-114.el6_7 will be an update
--> Processing Dependency: openssh = 5.3p1-114.el6_7 for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libutil.so.1(GLIBC_2.2.5)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.6)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.2)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libkrb5.so.3(krb5_3_MIT)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libcrypto.so.10(libcrypto.so.10)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.1)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libcrypt.so.1(GLIBC_2.2.5)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.8)(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libz.so.1()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libwrap.so.0()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libutil.so.1()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libselinux.so.1()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libresolv.so.2()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libpam.so.0()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libnss3.so()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libnsl.so.1()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libkrb5.so.3()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libk5crypto.so.3()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libgssapi_krb5.so.2()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libfipscheck.so.1()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libdl.so.2()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libcrypto.so.10()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libcrypt.so.1()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libcom_err.so.2()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libaudit.so.1()(64bit) for package: openssh-server-5.3p1-114.el6_7.x86_64
--> Running transaction check
---> Package audit-libs.x86_64 0:2.3.7-5.el6 will be installed
---> Package fipscheck-lib.x86_64 0:1.2.0-7.el6 will be installed
---> Package glibc.x86_64 0:2.12-1.166.el6_7.7 will be installed
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3)(64bit) for package: glibc-2.12-1.166.el6_7.7.x86_64
--> Processing Dependency: libfreebl3.so()(64bit) for package: glibc-2.12-1.166.el6_7.7.x86_64
---> Package krb5-libs.i686 0:1.10.3-42.el6 will be updated
---> Package krb5-libs.i686 0:1.10.3-42z1.el6_7 will be an update
---> Package krb5-libs.x86_64 0:1.10.3-42z1.el6_7 will be installed
--> Processing Dependency: libkeyutils.so.1(KEYUTILS_0.3)(64bit) for package: krb5-libs-1.10.3-42z1.el6_7.x86_64
--> Processing Dependency: libkeyutils.so.1()(64bit) for package: krb5-libs-1.10.3-42z1.el6_7.x86_64
---> Package libcom_err.x86_64 0:1.41.12-22.el6 will be installed
---> Package libselinux.x86_64 0:2.0.94-5.8.el6 will be installed
---> Package nss.x86_64 0:3.19.1-8.el6_7 will be installed
--> Processing Dependency: nss-softokn(x86-64) >= 3.14.3-22 for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.17.1)(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.15)(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.14)(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.13)(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.12.5)(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.12.3)(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.12)(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libsoftokn3.so()(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libplds4.so()(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libplc4.so()(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnssutil3.so()(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnssdbm3.so()(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnspr4.so()(64bit) for package: nss-3.19.1-8.el6_7.x86_64
---> Package openssh.i686 0:5.3p1-112.el6_7 will be updated
--> Processing Dependency: openssh = 5.3p1-112.el6_7 for package: openssh-clients-5.3p1-112.el6_7.i686
---> Package openssh.x86_64 0:5.3p1-114.el6_7 will be an update
---> Package openssl.i686 0:1.0.1e-42.el6_7.2 will be updated
---> Package openssl.i686 0:1.0.1e-42.el6_7.4 will be an update
---> Package openssl.x86_64 0:1.0.1e-42.el6_7.4 will be installed
---> Package pam.x86_64 0:1.1.1-20.el6_7.1 will be installed
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam-1.1.1-20.el6_7.1.x86_64
--> Processing Dependency: libcrack.so.2()(64bit) for package: pam-1.1.1-20.el6_7.1.x86_64
---> Package tcp_wrappers-libs.x86_64 0:7.6-57.el6 will be installed
---> Package zlib.x86_64 0:1.2.3-29.el6 will be installed
--> Running transaction check
---> Package cracklib.x86_64 0:2.8.16-4.el6 will be installed
---> Package db4.x86_64 0:4.7.25-20.el6_7 will be installed
---> Package keyutils-libs.x86_64 0:1.4-5.el6 will be installed
---> Package nspr.x86_64 0:4.10.8-2.el6_7 will be installed
---> Package nss-softokn.x86_64 0:3.14.3-23.el6_7 will be installed
--> Processing Dependency: libsqlite3.so.0()(64bit) for package: nss-softokn-3.14.3-23.el6_7.x86_64
---> Package nss-softokn-freebl.x86_64 0:3.14.3-23.el6_7 will be installed
---> Package nss-util.i686 0:3.19.1-2.el6_7 will be updated
---> Package nss-util.i686 0:3.19.1-5.el6_7 will be an update
---> Package nss-util.x86_64 0:3.19.1-5.el6_7 will be installed
---> Package openssh-clients.i686 0:5.3p1-112.el6_7 will be updated
---> Package openssh-clients.x86_64 0:5.3p1-114.el6_7 will be an update
--> Processing Dependency: libncurses.so.5()(64bit) for package: openssh-clients-5.3p1-114.el6_7.x86_64
--> Processing Dependency: libedit.so.0()(64bit) for package: openssh-clients-5.3p1-114.el6_7.x86_64
--> Running transaction check
---> Package libedit.x86_64 0:2.11-4.20080712cvs.1.el6 will be installed
---> Package ncurses-libs.x86_64 0:5.7-4.20090207.el6 will be installed
---> Package sqlite.x86_64 0:3.6.20-1.el6_7.2 will be installed
--> Processing Dependency: libreadline.so.6()(64bit) for package: sqlite-3.6.20-1.el6_7.2.x86_64
--> Running transaction check
---> Package readline.x86_64 0:6.0-4.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================
 Package                                Arch                       Version                                        Repository                   Size
====================================================================================================================================================
Updating:
 openssh-server                         x86_64                     5.3p1-114.el6_7                                updates                     324 k
Installing for dependencies:
 audit-libs                             x86_64                     2.3.7-5.el6                                    base                         71 k
 cracklib                               x86_64                     2.8.16-4.el6                                   base                         70 k
 db4                                    x86_64                     4.7.25-20.el6_7                                updates                     563 k
 fipscheck-lib                          x86_64                     1.2.0-7.el6                                    base                        8.3 k
 glibc                                  x86_64                     2.12-1.166.el6_7.7                             updates                     3.8 M
 keyutils-libs                          x86_64                     1.4-5.el6                                      base                         20 k
 krb5-libs                              x86_64                     1.10.3-42z1.el6_7                              updates                     769 k
 libcom_err                             x86_64                     1.41.12-22.el6                                 base                         37 k
 libedit                                x86_64                     2.11-4.20080712cvs.1.el6                       base                         74 k
 libselinux                             x86_64                     2.0.94-5.8.el6                                 base                        108 k
 ncurses-libs                           x86_64                     5.7-4.20090207.el6                             base                        245 k
 nspr                                   x86_64                     4.10.8-2.el6_7                                 updates                     113 k
 nss                                    x86_64                     3.19.1-8.el6_7                                 updates                     857 k
 nss-softokn                            x86_64                     3.14.3-23.el6_7                                updates                     262 k
 nss-softokn-freebl                     x86_64                     3.14.3-23.el6_7                                updates                     167 k
 nss-util                               x86_64                     3.19.1-5.el6_7                                 updates                      67 k
 openssl                                x86_64                     1.0.1e-42.el6_7.4                              updates                     1.5 M
 pam                                    x86_64                     1.1.1-20.el6_7.1                               updates                     658 k
 readline                               x86_64                     6.0-4.el6                                      base                        178 k
 sqlite                                 x86_64                     3.6.20-1.el6_7.2                               updates                     300 k
 tcp_wrappers-libs                      x86_64                     7.6-57.el6                                     base                         62 k
 zlib                                   x86_64                     1.2.3-29.el6                                   base                         73 k
Updating for dependencies:
 krb5-libs                              i686                       1.10.3-42z1.el6_7                              updates                     777 k
 nss-util                               i686                       3.19.1-5.el6_7                                 updates                      66 k
 openssh                                x86_64                     5.3p1-114.el6_7                                updates                     274 k
 openssh-clients                        x86_64                     5.3p1-114.el6_7                                updates                     439 k
 openssl                                i686                       1.0.1e-42.el6_7.4                              updates                     1.5 M
Transaction Summary
====================================================================================================================================================
Install      22 Package(s)
Upgrade       6 Package(s)
Total download size: 13 M
Downloading Packages:
(1/28): audit-libs-2.3.7-5.el6.x86_64.rpm                                                                                    |  71 kB     00:00     
(2/28): cracklib-2.8.16-4.el6.x86_64.rpm                                                                                     |  70 kB     00:00     
(3/28): db4-4.7.25-20.el6_7.x86_64.rpm                                                                                       | 563 kB     00:01     
(4/28): fipscheck-lib-1.2.0-7.el6.x86_64.rpm                                                                                 | 8.3 kB     00:00     
(5/28): glibc-2.12-1.166.el6_7.7.x86_64.rpm                                                                                  | 3.8 MB     00:05     
(6/28): keyutils-libs-1.4-5.el6.x86_64.rpm                                                                                   |  20 kB     00:00     
(7/28): krb5-libs-1.10.3-42z1.el6_7.i686.rpm                                                                                 | 777 kB     00:01     
(8/28): krb5-libs-1.10.3-42z1.el6_7.x86_64.rpm                                                                               | 769 kB     00:02     
(9/28): libcom_err-1.41.12-22.el6.x86_64.rpm                                                                                 |  37 kB     00:00     
(10/28): libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm                                                                         |  74 kB     00:00     
(11/28): libselinux-2.0.94-5.8.el6.x86_64.rpm                                                                                | 108 kB     00:00     
(12/28): ncurses-libs-5.7-4.20090207.el6.x86_64.rpm                                                                          | 245 kB     00:00     
(13/28): nspr-4.10.8-2.el6_7.x86_64.rpm                                                                                      | 113 kB     00:00     
(14/28): nss-3.19.1-8.el6_7.x86_64.rpm                                                                                       | 857 kB     00:04     
(15/28): nss-softokn-3.14.3-23.el6_7.x86_64.rpm                                                                              | 262 kB     00:01     
(16/28): nss-softokn-freebl-3.14.3-23.el6_7.x86_64.rpm                                                                       | 167 kB     00:01     
(17/28): nss-util-3.19.1-5.el6_7.i686.rpm                                                                                    |  66 kB     00:00     
(18/28): nss-util-3.19.1-5.el6_7.x86_64.rpm                                                                                  |  67 kB     00:00     
(19/28): openssh-5.3p1-114.el6_7.x86_64.rpm                                                                                  | 274 kB     00:02     
(20/28): openssh-clients-5.3p1-114.el6_7.x86_64.rpm                                                                          | 439 kB     00:04     
(21/28): openssh-server-5.3p1-114.el6_7.x86_64.rpm                                                                           | 324 kB     00:03     
(22/28): openssl-1.0.1e-42.el6_7.4.i686.rpm                                                                                  | 1.5 MB     00:18     
(23/28): openssl-1.0.1e-42.el6_7.4.x86_64.rpm                                                                                | 1.5 MB     00:19     
(24/28): pam-1.1.1-20.el6_7.1.x86_64.rpm                                                                                     | 658 kB     00:10     
(25/28): readline-6.0-4.el6.x86_64.rpm                                                                                       | 178 kB     00:00     
(26/28): sqlite-3.6.20-1.el6_7.2.x86_64.rpm                                                                                  | 300 kB     00:03     
(27/28): tcp_wrappers-libs-7.6-57.el6.x86_64.rpm                                                                             |  62 kB     00:00     
(28/28): zlib-1.2.3-29.el6.x86_64.rpm                                                                                        |  73 kB     00:00     
----------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                               158 kB/s |  13 MB     01:26     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
 Package: centos-release-6-7.el6.centos.12.3.i686 (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
libcrypto.so.10()(64bit) is needed by openssh-5.3p1-114.el6_7.x86_64
libcrypto.so.10(OPENSSL_1.0.1)(64bit) is needed by openssh-5.3p1-114.el6_7.x86_64
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by openssh-5.3p1-114.el6_7.x86_64
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by openssh-5.3p1-114.el6_7.x86_64
libcrypto.so.10()(64bit) is needed by openssh-server-5.3p1-114.el6_7.x86_64
libcrypto.so.10(OPENSSL_1.0.1)(64bit) is needed by openssh-server-5.3p1-114.el6_7.x86_64
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by openssh-server-5.3p1-114.el6_7.x86_64
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by openssh-server-5.3p1-114.el6_7.x86_64
libcrypto.so.10()(64bit) is needed by openssh-clients-5.3p1-114.el6_7.x86_64
libcrypto.so.10(OPENSSL_1.0.1)(64bit) is needed by openssh-clients-5.3p1-114.el6_7.x86_64
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit) is needed by openssh-clients-5.3p1-114.el6_7.x86_64
libcrypto.so.10(libcrypto.so.10)(64bit) is needed by openssh-clients-5.3p1-114.el6_7.x86_64
libgssapi_krb5.so.2 is needed by openssl-1.0.1e-42.el6_7.4.i686
libk5crypto.so.3 is needed by openssl-1.0.1e-42.el6_7.4.i686
libk5crypto.so.3(k5crypto_3_MIT) is needed by openssl-1.0.1e-42.el6_7.4.i686
libkrb5.so.3 is needed by openssl-1.0.1e-42.el6_7.4.i686
libkrb5.so.3(krb5_3_MIT) is needed by openssl-1.0.1e-42.el6_7.4.i686
libgssapi_krb5.so.2 is needed by (installed) libcurl-7.19.7-46.el6.i686
libgssapi_krb5.so.2 is needed by (installed) curl-7.19.7-46.el6.i686
libgssapi_krb5.so.2(gssapi_krb5_2_MIT) is needed by (installed) libcurl-7.19.7-46.el6.i686
libk5crypto.so.3 is needed by (installed) libcurl-7.19.7-46.el6.i686
libk5crypto.so.3 is needed by (installed) curl-7.19.7-46.el6.i686
libkrb5.so.3 is needed by (installed) libcurl-7.19.7-46.el6.i686
libkrb5.so.3 is needed by (installed) curl-7.19.7-46.el6.i686
libnssutil3.so is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so is needed by (installed) nss-sysinit-3.19.1-8.el6_7.i686
libnssutil3.so is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so is needed by (installed) nss-tools-3.19.1-8.el6_7.i686
libnssutil3.so is needed by (installed) libcurl-7.19.7-46.el6.i686
libnssutil3.so is needed by (installed) curl-7.19.7-46.el6.i686
libnssutil3.so is needed by (installed) openldap-2.4.40-7.el6_7.i686
libnssutil3.so(NSSUTIL_3.12) is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so(NSSUTIL_3.12) is needed by (installed) nss-sysinit-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.12) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.12) is needed by (installed) nss-tools-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.12.3) is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so(NSSUTIL_3.12.3) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.12.5) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.12.7) is needed by (installed) nss-tools-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.13) is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so(NSSUTIL_3.13) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.14) is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so(NSSUTIL_3.14) is needed by (installed) nss-sysinit-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.14) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.15) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.15) is needed by (installed) nss-tools-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.17.1) is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so(NSSUTIL_3.17.1) is needed by (installed) nss-3.19.1-8.el6_7.i686
 You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx-2016-03-20-17-11NiU4oE.yumtx
[root@f9be7c6c1a52 /]# 
安装passwd服务(需要设定密码)
[root@f9be7c6c1a52 /]# yum install passwd -y  
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
 * base: mirrors.skyshe.cn
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package passwd.x86_64 0:0.77-4.el6_2.2 will be installed
--> Processing Dependency: libpopt.so.0(LIBPOPT_0)(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libpam_misc.so.0(LIBPAM_MISC_1.0)(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libpam.so.0(LIBPAM_1.0)(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.4)(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libuser.so.1()(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libselinux.so.1()(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libpopt.so.0()(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libpam_misc.so.0()(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libpam.so.0()(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libgobject-2.0.so.0()(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libgmodule-2.0.so.0()(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libglib-2.0.so.0()(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libcrypt.so.1()(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Processing Dependency: libaudit.so.1()(64bit) for package: passwd-0.77-4.el6_2.2.x86_64
--> Running transaction check
---> Package audit-libs.x86_64 0:2.3.7-5.el6 will be installed
---> Package glib2.x86_64 0:2.28.8-4.el6 will be installed
--> Processing Dependency: libz.so.1(ZLIB_1.2.2)(64bit) for package: glib2-2.28.8-4.el6.x86_64
--> Processing Dependency: libz.so.1()(64bit) for package: glib2-2.28.8-4.el6.x86_64
--> Processing Dependency: libfam.so.0()(64bit) for package: glib2-2.28.8-4.el6.x86_64
---> Package glibc.x86_64 0:2.12-1.166.el6_7.7 will be installed
--> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3)(64bit) for package: glibc-2.12-1.166.el6_7.7.x86_64
--> Processing Dependency: libfreebl3.so()(64bit) for package: glibc-2.12-1.166.el6_7.7.x86_64
---> Package libselinux.x86_64 0:2.0.94-5.8.el6 will be installed
---> Package libuser.x86_64 0:0.56.13-8.el6_7 will be installed
--> Processing Dependency: libldap-2.4.so.2()(64bit) for package: libuser-0.56.13-8.el6_7.x86_64
---> Package pam.x86_64 0:1.1.1-20.el6_7.1 will be installed
--> Processing Dependency: libdb-4.7.so()(64bit) for package: pam-1.1.1-20.el6_7.1.x86_64
--> Processing Dependency: libcrack.so.2()(64bit) for package: pam-1.1.1-20.el6_7.1.x86_64
---> Package popt.x86_64 0:1.13-7.el6 will be installed
--> Running transaction check
---> Package cracklib.x86_64 0:2.8.16-4.el6 will be installed
---> Package db4.x86_64 0:4.7.25-20.el6_7 will be installed
---> Package gamin.x86_64 0:0.1.10-9.el6 will be installed
---> Package nss-softokn-freebl.x86_64 0:3.14.3-23.el6_7 will be installed
---> Package openldap.x86_64 0:2.4.40-7.el6_7 will be installed
--> Processing Dependency: libssl3.so(NSS_3.7.4)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libssl3.so(NSS_3.4)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libssl3.so(NSS_3.2)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libssl3.so(NSS_3.14)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.9.3)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.9.2)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.8)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.6)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.4)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.3)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.2)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.12.9)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.12.5)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.12.1)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.12)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.11.1)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.11)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so(NSS_3.10)(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libssl3.so()(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libsmime3.so()(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libsasl2.so.2()(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libplds4.so()(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libplc4.so()(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnssutil3.so()(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnss3.so()(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
--> Processing Dependency: libnspr4.so()(64bit) for package: openldap-2.4.40-7.el6_7.x86_64
---> Package zlib.x86_64 0:1.2.3-29.el6 will be installed
--> Running transaction check
---> Package cyrus-sasl-lib.x86_64 0:2.1.23-15.el6_6.2 will be installed
---> Package nspr.x86_64 0:4.10.8-2.el6_7 will be installed
---> Package nss.x86_64 0:3.19.1-8.el6_7 will be installed
--> Processing Dependency: nss-softokn(x86-64) >= 3.14.3-22 for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libsoftokn3.so()(64bit) for package: nss-3.19.1-8.el6_7.x86_64
--> Processing Dependency: libnssdbm3.so()(64bit) for package: nss-3.19.1-8.el6_7.x86_64
---> Package nss-util.i686 0:3.19.1-2.el6_7 will be updated
---> Package nss-util.i686 0:3.19.1-5.el6_7 will be an update
---> Package nss-util.x86_64 0:3.19.1-5.el6_7 will be installed
--> Running transaction check
---> Package nss-softokn.x86_64 0:3.14.3-23.el6_7 will be installed
--> Processing Dependency: libsqlite3.so.0()(64bit) for package: nss-softokn-3.14.3-23.el6_7.x86_64
--> Running transaction check
---> Package sqlite.x86_64 0:3.6.20-1.el6_7.2 will be installed
--> Processing Dependency: libreadline.so.6()(64bit) for package: sqlite-3.6.20-1.el6_7.2.x86_64
--> Running transaction check
---> Package readline.x86_64 0:6.0-4.el6 will be installed
--> Processing Dependency: libtinfo.so.5()(64bit) for package: readline-6.0-4.el6.x86_64
--> Running transaction check
---> Package ncurses-libs.x86_64 0:5.7-4.20090207.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================
 Package                                  Arch                         Version                                  Repository                     Size
====================================================================================================================================================
Installing:
 passwd                                   x86_64                       0.77-4.el6_2.2                           base                           89 k
Installing for dependencies:
 audit-libs                               x86_64                       2.3.7-5.el6                              base                           71 k
 cracklib                                 x86_64                       2.8.16-4.el6                             base                           70 k
 cyrus-sasl-lib                           x86_64                       2.1.23-15.el6_6.2                        base                          136 k
 db4                                      x86_64                       4.7.25-20.el6_7                          updates                       563 k
 gamin                                    x86_64                       0.1.10-9.el6                             base                          122 k
 glib2                                    x86_64                       2.28.8-4.el6                             base                          1.7 M
 glibc                                    x86_64                       2.12-1.166.el6_7.7                       updates                       3.8 M
 libselinux                               x86_64                       2.0.94-5.8.el6                           base                          108 k
 libuser                                  x86_64                       0.56.13-8.el6_7                          updates                       368 k
 ncurses-libs                             x86_64                       5.7-4.20090207.el6                       base                          245 k
 nspr                                     x86_64                       4.10.8-2.el6_7                           updates                       113 k
 nss                                      x86_64                       3.19.1-8.el6_7                           updates                       857 k
 nss-softokn                              x86_64                       3.14.3-23.el6_7                          updates                       262 k
 nss-softokn-freebl                       x86_64                       3.14.3-23.el6_7                          updates                       167 k
 nss-util                                 x86_64                       3.19.1-5.el6_7                           updates                        67 k
 openldap                                 x86_64                       2.4.40-7.el6_7                           updates                       282 k
 pam                                      x86_64                       1.1.1-20.el6_7.1                         updates                       658 k
 popt                                     x86_64                       1.13-7.el6                               base                           39 k
 readline                                 x86_64                       6.0-4.el6                                base                          178 k
 sqlite                                   x86_64                       3.6.20-1.el6_7.2                         updates                       300 k
 zlib                                     x86_64                       1.2.3-29.el6                             base                           73 k
Updating for dependencies:
 nss-util                                 i686                         3.19.1-5.el6_7                           updates                        66 k
Transaction Summary
====================================================================================================================================================
Install      22 Package(s)
Upgrade       1 Package(s)
Total size: 10 M
Total download size: 2.7 M
Downloading Packages:
(1/7): cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64.rpm                                                                           | 136 kB     00:00     
(2/7): gamin-0.1.10-9.el6.x86_64.rpm                                                                                         | 122 kB     00:00     
(3/7): glib2-2.28.8-4.el6.x86_64.rpm                                                                                         | 1.7 MB     00:01     
(4/7): libuser-0.56.13-8.el6_7.x86_64.rpm                                                                                    | 368 kB     00:00     
(5/7): openldap-2.4.40-7.el6_7.x86_64.rpm                                                                                    | 282 kB     00:00     
(6/7): passwd-0.77-4.el6_2.2.x86_64.rpm                                                                                      |  89 kB     00:00     
(7/7): popt-1.13-7.el6.x86_64.rpm                                                                                            |  39 kB     00:00     
----------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                               1.3 MB/s | 2.7 MB     00:02     
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
libnssutil3.so is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so is needed by (installed) nss-sysinit-3.19.1-8.el6_7.i686
libnssutil3.so is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so is needed by (installed) nss-tools-3.19.1-8.el6_7.i686
libnssutil3.so is needed by (installed) libcurl-7.19.7-46.el6.i686
libnssutil3.so is needed by (installed) curl-7.19.7-46.el6.i686
libnssutil3.so is needed by (installed) openldap-2.4.40-7.el6_7.i686
libnssutil3.so(NSSUTIL_3.12) is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so(NSSUTIL_3.12) is needed by (installed) nss-sysinit-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.12) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.12) is needed by (installed) nss-tools-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.12.3) is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so(NSSUTIL_3.12.3) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.12.5) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.12.7) is needed by (installed) nss-tools-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.13) is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so(NSSUTIL_3.13) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.14) is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so(NSSUTIL_3.14) is needed by (installed) nss-sysinit-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.14) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.15) is needed by (installed) nss-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.15) is needed by (installed) nss-tools-3.19.1-8.el6_7.i686
libnssutil3.so(NSSUTIL_3.17.1) is needed by (installed) nss-softokn-3.14.3-23.el6_7.i686
libnssutil3.so(NSSUTIL_3.17.1) is needed by (installed) nss-3.19.1-8.el6_7.i686
 You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx-2016-03-20-17-138MTkm5.yumtx
[root@f9be7c6c1a52 /]# 
修改[root@f9be7c6c1a52 /]# vi /etc/ssh/sshd_config 
96 #UsePAM no
97 UsePAM no
关闭主机selinux
[root@localhost /]# vim /etc/selinux/config 
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted                                
发表评论
叁 加 柒 =
评论通过审核后显示。