卸载并重装openssh(解决ssh -1问题)

本文介绍了解决因openssh版本问题导致MPI多节点集群无法正常工作的方法。通过卸载原有openssh包并重新安装来恢复正常SSH服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在集群测试过程中,有一个节点的openssh装的有问题,需要ssh -1 才能登录,导致多节点的mpi无法使用。


修改配置文件什么的也没有用(也许是我改的不对。。)


最后决定直接重装openssh


1. 卸载

先查看openssh的相关包

[root@node51 ~]# rpm -qa openssh*
openssh-server-6.6.1p1-11.el7.x86_64
openssh-6.6.1p1-11.el7.x86_64
openssh-clients-6.6.1p1-11.el7.x86_64

然后依次卸载

[root@node51 ~]# yum remove openssh-server-6.6.1p1-11.el7.x86_64
[root@node51 ~]# yum remove openssh-clients-6.6.1p1-11.el7.x86_64
[root@node51 ~]# yum remove openssh-6.6.1p1-11.el7.x86_64

2. 安装

[root@node51 ~]# yum install -y openssh-server-6.6.1p1-11.el7.x86_64
[root@node1 ~]# yum install -y openssh-clients-6.6.1p1-11.el7.x86_64

然后重新启动ssh服务

[root@node51 ~]# service sshd start

这样就可以了


The following extra packages will be installed: openssh-client openssh-server ssh-import-id Suggested packages: libpam-ssh keychain monkeysphere openssh-blacklist openssh-blacklist-extra rssh molly-guard The following NEW packages will be installed: openssh-server ssh ssh-import-id The following packages will be upgraded: openssh-client 1 upgraded, 3 newly installed, 0 to remove and 767 not upgraded. Need to get 1,310 kB of archives. After this operation, 926 kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! openssh-client openssh-server ssh ssh-import-id Install these packages without verification [y/N]? y Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main openssh-client i386 1:5.9p1-5ubuntu1.10 404 Not Found [IP: 91.189.91.82 80] Err http://us.archive.ubuntu.com/ubuntu/ precise/main ssh-import-id all 2.10-0ubuntu1 404 Not Found [IP: 91.189.91.82 80] Err http://security.ubuntu.com/ubuntu/ precise-security/main openssh-client i386 1:5.9p1-5ubuntu1.10 404 Not Found [IP: 91.189.91.81 80] Err http://security.ubuntu.com/ubuntu/ precise-security/main openssh-server i386 1:5.9p1-5ubuntu1.10 404 Not Found [IP: 91.189.91.81 80] Err http://security.ubuntu.com/ubuntu/ precise-security/main ssh all 1:5.9p1-5ubuntu1.10 404 Not Found [IP: 91.189.91.81 80] Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-client_5.9p1-5ubuntu1.10_i386.deb 404 Not Found [IP: 91.189.91.81 80] Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-server_5.9p1-5ubuntu1.10_i386.deb 404 Not Found [IP: 91.189.91.81 80] Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/ssh_5.9p1-5ubuntu1.10_all.deb 404 Not Found [IP: 91.189.91.81 80] Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/ssh-import-id/ssh-import-id_2.10-0ubuntu1_all.deb 404 Not Found [IP: 91.189.91.82 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
最新发布
08-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值