关于ubuntu拒绝被ssh访问

admin Linux运维评论81字数 260阅读模式

ubuntu服务器正用着好好的,可能因为一次断电关机后,突然不能远程登录了,用SSH也连接不上。
最后的解决办法:
1. 在ubuntu上卸载ssh

sudo apt-get remove openssh-server
sudo apt-get remove openssh-client

2. 删除 /etc/ssh文件夹(这一步很关键!)

cd /etc
sudo rm -r ssh

3. 重新安装ssh

sudo apt-get install openssh-server
sudo apt-get install openssh-client

我通过这种方法解决问题了。

版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
admin
  • 本文由 发表于 2024年4月24日 22:18:38
  • 转载请务必保留本文链接:https://www.58pxe.com/11833.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: