一、redhat7修改/etc/ld.so.conf文件
如下
1.
echo "/usr/local/XXXX/lib" >> /etc/ld.so.conf
ldconfig
会导致
[root@localhost ~]# ssh localhost
root@localhost's password:
Permission denied, please try again.
echo "/home/highgo/XXXX/lib" >> /etc/ld.so.conf
ldconfig
会导致
[root@localhost highgo]# ssh localhost
ssh_exchange_identification: read: Connection reset by peer
在/etc/ld.so.conf.d目录下新建 .conf 文件指向lib同样导致
[root@localhost highgo]# ssh localhost
ssh_exchange_identification: read: Connection reset by peer
二、CentOS7 修改/etc/ld.so.conf文件
[root@db1 highgo]# ssh localhost
ssh: /home/highgo/pgsql/lib/libcrypto.so.10: version `OPENSSL_1.0.2' not found (required by ssh)
redhat看不出解决方法,但是通过在CentOS的提示,发现是libcrypto.so.10库文件导致的问题,在 添加我们自己的路径前,先添加系统的可解决,如下