解决ssh重启报错 Unit -.mount is masked.

信创服务器升级openssl和openssh的时候发生了一个奇怪的报错:

Failed to restart ssh.service:Unit -.mount is masked.

解决方法:

rm /lib/systemd/system/ssh.service

或者从其他服务器拖一个该文件过来,经过对比原有文件和拖过来的文件内容权限都一样,但是就是需要替换一下,原因未知。

本文为原创文章,转载请注明出处。

原文链接:https://850406.xyz/post/解决ssh重启报错-unit---mount-is-masked

评论(0)

还没有评论,来抢沙发吧~

验证码