解决ssh重启报错 Unit -.mount is masked. 发表于 2021-12-30 更新于 2026-03-03 分类于 技术分享 信创服务器升级openssl和openssh的时候发生了一个奇怪的报错: 1Failed to restart ssh.service:Unit -.mount is masked. 解决方法: 1rm /lib/systemd/system/ssh.service 或者从其他服务器拖一个该文件过来,经过对比原有文件和拖过来的文件内容权限都一样,但是就是需要替换一下,原因未知。