1.CentOS6.3查询安装过的ssh的软件包:
rpm -qa|grep ssh
libssh2-1.2.2-7.el6_2.3.x86_64
openssh-askpass-5.3p1-81.el6.x86_64
openssh-5.3p1-81.el6.x86_64
openssh-clients-5.3p1-81.el6.x86_64
openssh-server-5.3p1-81.el6.x86_64
2.卸载软件包:
rpm -e openssh-askpass --nodeps
rpm -e openssh-5.3p1 --nodeps
rpm -e openssh-clients --nodeps
rpm -e openssh-server --nodeps
注意:千万不要继续卸载掉libssh2的包,如果使用rpm -e libssh2 --nodeps 卸载了这个包,将造成缺少libssh2.so.1的动态链接库文件,无法重新yum install openssh-server openssh-clients openssh-askpass -y。