centos7 ssh 提示/bin/bash No such file or directory

Phenomenon: customers reported impaired ssh can not login. Tips / bin / bash No such file or directory 

After the single-user mode linux16 row ro Alternatively rw init = / sysroot / bin / sh Ctrl + X to: Troubleshooting

    - the root of the given switching: Command: chroot / sysroot given: chroot: failed to run command '/ bin / sh': No such file or directory 

 

 

 Possible causes: The required command library file is missing, lost or directory.

By normal system commands needed to check the library file path: ldd / bin / sh

 

 

 Find the cause: library directory is missing. (Comparative through the normal host, the directory is soft link) 

 

 

Contrast normal hosts:

 

 

 

 View failed host / usr / lib64 exists. If there is to re-create the soft link repair

    

cd to / sysroot / directory to create a connection

    

 

 

 

 After the re-start normal system reboot

    

 

Guess you like

Origin www.cnblogs.com/zhangmingda/p/11791701.html