liunx下误删除/var目录下的empty文件,致使ssh链接不上

清理Liunx上不用的文件,致使误删 /var/下的empty文件,由于用的是ftp删的,因此可能有隐藏文件没有看到,致使其余同事都登陆不上去ssh

解决方法:spa

一、在/var文件夹下,从新创建empty文件夹rest

二、而后在/var/empty文件夹中创建sshd文件(注意是文件)it

三、mkdir /var/empty/sshd/etcclass

四、cd /var/empty/sshd/etc登录

五、ln -s /etc/localtime localtimeftp

六、重启sshsso

  /etc/init.d/sshd restart方法

相关文章
相关标签/搜索